pub struct TimestampMetadata { /* private fields */ }Expand description
Metadata for the timestamp role.
Implementations§
Source§impl TimestampMetadata
impl TimestampMetadata
Sourcepub fn new(
version: u32,
expires: DateTime<Utc>,
snapshot: MetadataDescription<SnapshotMetadata>,
additional_fields: HashMap<String, Value>,
) -> Result<Self>
pub fn new( version: u32, expires: DateTime<Utc>, snapshot: MetadataDescription<SnapshotMetadata>, additional_fields: HashMap<String, Value>, ) -> Result<Self>
Create new TimestampMetadata.
Sourcepub fn snapshot(&self) -> &MetadataDescription<SnapshotMetadata>
pub fn snapshot(&self) -> &MetadataDescription<SnapshotMetadata>
An immutable reference to the snapshot description.
Sourcepub fn additional_fields(&self) -> &HashMap<String, Value>
pub fn additional_fields(&self) -> &HashMap<String, Value>
An immutable reference to any additional fields on the metadata.
Trait Implementations§
Source§impl Clone for TimestampMetadata
impl Clone for TimestampMetadata
Source§fn clone(&self) -> TimestampMetadata
fn clone(&self) -> TimestampMetadata
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 TimestampMetadata
impl Debug for TimestampMetadata
Source§impl<'de> Deserialize<'de> for TimestampMetadata
impl<'de> Deserialize<'de> for TimestampMetadata
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Metadata for TimestampMetadata
impl Metadata for TimestampMetadata
Source§impl PartialEq for TimestampMetadata
impl PartialEq for TimestampMetadata
Source§impl Serialize for TimestampMetadata
impl Serialize for TimestampMetadata
impl Eq for TimestampMetadata
impl StructuralPartialEq for TimestampMetadata
Auto Trait Implementations§
impl Freeze for TimestampMetadata
impl RefUnwindSafe for TimestampMetadata
impl Send for TimestampMetadata
impl Sync for TimestampMetadata
impl Unpin for TimestampMetadata
impl UnsafeUnpin for TimestampMetadata
impl UnwindSafe for TimestampMetadata
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