pub struct MacosFileProviderItemVersion { /* private fields */ }Expand description
Owned metadata/content versions for one File Provider item.
Implementations§
Source§impl MacosFileProviderItemVersion
impl MacosFileProviderItemVersion
Sourcepub fn new(metadata: MetadataRevision, content: ContentRevision) -> Result<Self>
pub fn new(metadata: MetadataRevision, content: ContentRevision) -> Result<Self>
Creates an item version while preserving both opaque revision values exactly.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn directory(metadata: MetadataRevision) -> Result<Self>
pub fn directory(metadata: MetadataRevision) -> Result<Self>
Creates a directory version with a fixed content component and exact metadata revision.
§Errors
Returns an error when validation fails or an underlying backend, store, or platform operation fails.
Sourcepub fn into_parts(self) -> (MetadataRevision, ContentRevision)
pub fn into_parts(self) -> (MetadataRevision, ContentRevision)
Consumes the version into metadata and content components.
Trait Implementations§
Source§impl Clone for MacosFileProviderItemVersion
impl Clone for MacosFileProviderItemVersion
Source§fn clone(&self) -> MacosFileProviderItemVersion
fn clone(&self) -> MacosFileProviderItemVersion
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 MacosFileProviderItemVersion
impl Debug for MacosFileProviderItemVersion
Source§impl PartialEq for MacosFileProviderItemVersion
impl PartialEq for MacosFileProviderItemVersion
Source§fn eq(&self, other: &MacosFileProviderItemVersion) -> bool
fn eq(&self, other: &MacosFileProviderItemVersion) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MacosFileProviderItemVersion
impl StructuralPartialEq for MacosFileProviderItemVersion
Auto Trait Implementations§
impl Freeze for MacosFileProviderItemVersion
impl RefUnwindSafe for MacosFileProviderItemVersion
impl Send for MacosFileProviderItemVersion
impl Sync for MacosFileProviderItemVersion
impl Unpin for MacosFileProviderItemVersion
impl UnwindSafe for MacosFileProviderItemVersion
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