#[non_exhaustive]pub struct WriteOperationEvidence {
pub fragment: u32,
pub key_digest: Vec<u8>,
pub value_digest: Vec<u8>,
pub timestamp_ms: u64,
pub logical_counter: u64,
pub node_id: String,
pub is_tombstone: bool,
pub expires_at_ms: Option<u64>,
pub operation_digest: Vec<u8>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.fragment: u32§key_digest: Vec<u8>§value_digest: Vec<u8>§timestamp_ms: u64§logical_counter: u64§node_id: String§is_tombstone: bool§expires_at_ms: Option<u64>§operation_digest: Vec<u8>Implementations§
Source§impl WriteOperationEvidence
impl WriteOperationEvidence
Sourcepub fn expires_at_ms(&self) -> u64
pub fn expires_at_ms(&self) -> u64
Returns the value of expires_at_ms, or the default value if expires_at_ms is unset.
Trait Implementations§
Source§impl Clone for WriteOperationEvidence
impl Clone for WriteOperationEvidence
Source§impl Debug for WriteOperationEvidence
impl Debug for WriteOperationEvidence
Source§impl Default for WriteOperationEvidence
impl Default for WriteOperationEvidence
impl Eq for WriteOperationEvidence
Source§impl Hash for WriteOperationEvidence
impl Hash for WriteOperationEvidence
Source§impl Message for WriteOperationEvidence
impl Message for WriteOperationEvidence
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for WriteOperationEvidence
impl PartialEq for WriteOperationEvidence
impl StructuralPartialEq for WriteOperationEvidence
Auto Trait Implementations§
impl Freeze for WriteOperationEvidence
impl RefUnwindSafe for WriteOperationEvidence
impl Send for WriteOperationEvidence
impl Sync for WriteOperationEvidence
impl Unpin for WriteOperationEvidence
impl UnsafeUnpin for WriteOperationEvidence
impl UnwindSafe for WriteOperationEvidence
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