pub struct ObjectDescriptor { /* private fields */ }Expand description
One immutable stored object generation.
Implementations§
Source§impl ObjectDescriptor
impl ObjectDescriptor
Sourcepub fn try_new(
object: String,
generation: u64,
digest: [u8; 32],
owner: String,
classification: Classification,
retention: Retention,
byte_len: u64,
content_reference: String,
) -> Result<Self, ModelError>
pub fn try_new( object: String, generation: u64, digest: [u8; 32], owner: String, classification: Classification, retention: Retention, byte_len: u64, content_reference: String, ) -> Result<Self, ModelError>
Records one immutable object generation.
§Errors
Returns ModelError::Bounds for an empty object id, owner, or
content reference.
Sourcepub const fn generation(&self) -> u64
pub const fn generation(&self) -> u64
Returns the object generation.
Sourcepub const fn classification(&self) -> Classification
pub const fn classification(&self) -> Classification
Returns the content classification.
Sourcepub fn content_reference(&self) -> &str
pub fn content_reference(&self) -> &str
Returns the content reference.
Trait Implementations§
Source§impl Clone for ObjectDescriptor
impl Clone for ObjectDescriptor
Source§fn clone(&self) -> ObjectDescriptor
fn clone(&self) -> ObjectDescriptor
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 moreSource§impl Debug for ObjectDescriptor
impl Debug for ObjectDescriptor
impl Eq for ObjectDescriptor
Source§impl PartialEq for ObjectDescriptor
impl PartialEq for ObjectDescriptor
impl StructuralPartialEq for ObjectDescriptor
Auto Trait Implementations§
impl Freeze for ObjectDescriptor
impl RefUnwindSafe for ObjectDescriptor
impl Send for ObjectDescriptor
impl Sync for ObjectDescriptor
impl Unpin for ObjectDescriptor
impl UnsafeUnpin for ObjectDescriptor
impl UnwindSafe for ObjectDescriptor
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