#[non_exhaustive]pub enum ContentVersion {
Blob(BlobId),
Stamp(FileStamp),
}Expand description
Content identity carried by a node state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Blob(BlobId)
Exact immutable content has been captured in the blob store.
Stamp(FileStamp)
Content is lazy; this metadata stamp must still match when it is captured.
Trait Implementations§
Source§impl Clone for ContentVersion
impl Clone for ContentVersion
Source§fn clone(&self) -> ContentVersion
fn clone(&self) -> ContentVersion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContentVersion
Source§impl Debug for ContentVersion
impl Debug for ContentVersion
impl Eq for ContentVersion
Source§impl Hash for ContentVersion
impl Hash for ContentVersion
Source§impl Ord for ContentVersion
impl Ord for ContentVersion
Source§fn cmp(&self, other: &ContentVersion) -> Ordering
fn cmp(&self, other: &ContentVersion) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ContentVersion
impl PartialEq for ContentVersion
Source§impl PartialOrd for ContentVersion
impl PartialOrd for ContentVersion
impl StructuralPartialEq for ContentVersion
Auto Trait Implementations§
impl Freeze for ContentVersion
impl RefUnwindSafe for ContentVersion
impl Send for ContentVersion
impl Sync for ContentVersion
impl Unpin for ContentVersion
impl UnsafeUnpin for ContentVersion
impl UnwindSafe for ContentVersion
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