pub struct ValueMetadata {
pub codec: String,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
Metadata stored alongside a serialised value.
Fields§
§codec: StringCodec name used to serialise the value.
created_at: DateTime<Utc>Creation timestamp in UTC.
updated_at: DateTime<Utc>Last update timestamp in UTC.
expires_at: Option<DateTime<Utc>>Expiry timestamp in UTC, when TTL is used.
Implementations§
Source§impl ValueMetadata
impl ValueMetadata
Trait Implementations§
Source§impl Clone for ValueMetadata
impl Clone for ValueMetadata
Source§fn clone(&self) -> ValueMetadata
fn clone(&self) -> ValueMetadata
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 ValueMetadata
impl Debug for ValueMetadata
impl Eq for ValueMetadata
Source§impl PartialEq for ValueMetadata
impl PartialEq for ValueMetadata
Source§fn eq(&self, other: &ValueMetadata) -> bool
fn eq(&self, other: &ValueMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ValueMetadata
Auto Trait Implementations§
impl Freeze for ValueMetadata
impl RefUnwindSafe for ValueMetadata
impl Send for ValueMetadata
impl Sync for ValueMetadata
impl Unpin for ValueMetadata
impl UnsafeUnpin for ValueMetadata
impl UnwindSafe for ValueMetadata
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