pub struct SnapshotLeaseMetadata {
pub owner: String,
pub expiry: u64,
pub acquired_at: u64,
pub updated_at: u64,
}Expand description
Snapshot representation of lease metadata.
Fields§
§owner: StringLease owner string.
expiry: u64Lease expiry timestamp.
acquired_at: u64Timestamp when the lease was acquired.
updated_at: u64Timestamp when the lease was last updated.
Trait Implementations§
Source§impl Clone for SnapshotLeaseMetadata
impl Clone for SnapshotLeaseMetadata
Source§fn clone(&self) -> SnapshotLeaseMetadata
fn clone(&self) -> SnapshotLeaseMetadata
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 SnapshotLeaseMetadata
impl Debug for SnapshotLeaseMetadata
Source§impl<'de> Deserialize<'de> for SnapshotLeaseMetadata
impl<'de> Deserialize<'de> for SnapshotLeaseMetadata
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LeaseMetadata> for SnapshotLeaseMetadata
impl From<LeaseMetadata> for SnapshotLeaseMetadata
Source§fn from(metadata: LeaseMetadata) -> Self
fn from(metadata: LeaseMetadata) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SnapshotLeaseMetadata
impl PartialEq for SnapshotLeaseMetadata
Source§impl Serialize for SnapshotLeaseMetadata
impl Serialize for SnapshotLeaseMetadata
impl Eq for SnapshotLeaseMetadata
impl StructuralPartialEq for SnapshotLeaseMetadata
Auto Trait Implementations§
impl Freeze for SnapshotLeaseMetadata
impl RefUnwindSafe for SnapshotLeaseMetadata
impl Send for SnapshotLeaseMetadata
impl Sync for SnapshotLeaseMetadata
impl Unpin for SnapshotLeaseMetadata
impl UnsafeUnpin for SnapshotLeaseMetadata
impl UnwindSafe for SnapshotLeaseMetadata
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