pub struct WindowsFileIdentity(/* private fields */);Expand description
Owned, validated CFAPI file identity for one exact Forge item key.
Implementations§
Source§impl WindowsFileIdentity
impl WindowsFileIdentity
Sourcepub fn encode(key: &CloudItemKey) -> Result<Self>
pub fn encode(key: &CloudItemKey) -> Result<Self>
Encodes a scoped, path-independent Forge item key using the current versioned envelope.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self>
Validates owned bytes and preserves the canonical identity envelope.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn decode(&self) -> Result<CloudItemKey>
pub fn decode(&self) -> Result<CloudItemKey>
Decodes the stable scoped Forge item key.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn into_bytes(self) -> Vec<u8> ⓘ
pub fn into_bytes(self) -> Vec<u8> ⓘ
Consumes the identity and returns its exact bytes.
Trait Implementations§
Source§impl Clone for WindowsFileIdentity
impl Clone for WindowsFileIdentity
Source§fn clone(&self) -> WindowsFileIdentity
fn clone(&self) -> WindowsFileIdentity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowsFileIdentity
impl Debug for WindowsFileIdentity
Source§impl Hash for WindowsFileIdentity
impl Hash for WindowsFileIdentity
Source§impl PartialEq for WindowsFileIdentity
impl PartialEq for WindowsFileIdentity
impl Eq for WindowsFileIdentity
impl StructuralPartialEq for WindowsFileIdentity
Auto Trait Implementations§
impl Freeze for WindowsFileIdentity
impl RefUnwindSafe for WindowsFileIdentity
impl Send for WindowsFileIdentity
impl Sync for WindowsFileIdentity
impl Unpin for WindowsFileIdentity
impl UnwindSafe for WindowsFileIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more