pub struct CloudContentMetadata { /* private fields */ }Expand description
Content-specific metadata attached to a regular file.
Implementations§
Source§impl CloudContentMetadata
impl CloudContentMetadata
Sourcepub const fn new(
revision: ContentRevision,
digest: Option<ContentDigest>,
size: u64,
) -> Self
pub const fn new( revision: ContentRevision, digest: Option<ContentDigest>, size: u64, ) -> Self
Creates content metadata for one exact content revision.
Sourcepub const fn revision(&self) -> &ContentRevision
pub const fn revision(&self) -> &ContentRevision
Returns the opaque content revision.
Sourcepub const fn digest(&self) -> Option<&ContentDigest>
pub const fn digest(&self) -> Option<&ContentDigest>
Returns the optional algorithm-tagged content digest.
Sourcepub fn into_parts(self) -> (ContentRevision, Option<ContentDigest>, u64)
pub fn into_parts(self) -> (ContentRevision, Option<ContentDigest>, u64)
Consumes the metadata and returns its revision, digest, and size.
Trait Implementations§
Source§impl Clone for CloudContentMetadata
impl Clone for CloudContentMetadata
Source§fn clone(&self) -> CloudContentMetadata
fn clone(&self) -> CloudContentMetadata
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 CloudContentMetadata
impl Debug for CloudContentMetadata
Source§impl PartialEq for CloudContentMetadata
impl PartialEq for CloudContentMetadata
impl Eq for CloudContentMetadata
impl StructuralPartialEq for CloudContentMetadata
Auto Trait Implementations§
impl Freeze for CloudContentMetadata
impl RefUnwindSafe for CloudContentMetadata
impl Send for CloudContentMetadata
impl Sync for CloudContentMetadata
impl Unpin for CloudContentMetadata
impl UnwindSafe for CloudContentMetadata
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