pub struct StateEnvelopeDescriptor { /* private fields */ }Expand description
A redacted description of one durable state envelope.
Presence, format, schema, schema version, and encoded size are observable; the payload is not.
Implementations§
Source§impl StateEnvelopeDescriptor
impl StateEnvelopeDescriptor
Sourcepub const fn kind(&self) -> DurableStateKind
pub const fn kind(&self) -> DurableStateKind
Returns the durable state category.
Sourcepub const fn format_version(&self) -> u16
pub const fn format_version(&self) -> u16
Returns the envelope format version.
Sourcepub const fn schema_id(&self) -> &StateSchemaId
pub const fn schema_id(&self) -> &StateSchemaId
Borrows the application-owned schema identifier.
Sourcepub const fn schema_version(&self) -> StateSchemaVersion
pub const fn schema_version(&self) -> StateSchemaVersion
Returns the application-owned schema version.
Sourcepub const fn encoded_len(&self) -> usize
pub const fn encoded_len(&self) -> usize
Returns the encoded payload size in bytes.
Trait Implementations§
Source§impl Clone for StateEnvelopeDescriptor
impl Clone for StateEnvelopeDescriptor
Source§fn clone(&self) -> StateEnvelopeDescriptor
fn clone(&self) -> StateEnvelopeDescriptor
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 StateEnvelopeDescriptor
impl Debug for StateEnvelopeDescriptor
impl Eq for StateEnvelopeDescriptor
Source§impl PartialEq for StateEnvelopeDescriptor
impl PartialEq for StateEnvelopeDescriptor
impl StructuralPartialEq for StateEnvelopeDescriptor
Auto Trait Implementations§
impl Freeze for StateEnvelopeDescriptor
impl RefUnwindSafe for StateEnvelopeDescriptor
impl Send for StateEnvelopeDescriptor
impl Sync for StateEnvelopeDescriptor
impl Unpin for StateEnvelopeDescriptor
impl UnsafeUnpin for StateEnvelopeDescriptor
impl UnwindSafe for StateEnvelopeDescriptor
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