pub struct RowMetadata {
pub version: Option<u64>,
pub ttl: Option<u64>,
pub tags: HashMap<String, String>,
}Expand description
Row metadata
Fields§
§version: Option<u64>Row version/timestamp
ttl: Option<u64>Row TTL (time to live)
Row tags or labels
Implementations§
Source§impl RowMetadata
impl RowMetadata
Sourcepub fn with_version(self, version: u64) -> Self
pub fn with_version(self, version: u64) -> Self
Set version
Trait Implementations§
Source§impl Clone for RowMetadata
impl Clone for RowMetadata
Source§fn clone(&self) -> RowMetadata
fn clone(&self) -> RowMetadata
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 RowMetadata
impl Debug for RowMetadata
Source§impl Default for RowMetadata
impl Default for RowMetadata
Source§fn default() -> RowMetadata
fn default() -> RowMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RowMetadata
impl<'de> Deserialize<'de> for RowMetadata
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
Auto Trait Implementations§
impl Freeze for RowMetadata
impl RefUnwindSafe for RowMetadata
impl Send for RowMetadata
impl Sync for RowMetadata
impl Unpin for RowMetadata
impl UnsafeUnpin for RowMetadata
impl UnwindSafe for RowMetadata
Blanket Implementations§
impl<T> Allocation for T
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