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 (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 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
impl Eq for TimestampMetadata
Source§impl Metadata for TimestampMetadata
impl Metadata for TimestampMetadata
Source§impl PartialEq for TimestampMetadata
impl PartialEq for TimestampMetadata
Source§fn eq(&self, other: &TimestampMetadata) -> bool
fn eq(&self, other: &TimestampMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TimestampMetadata
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.