pub struct MutationResult {
pub key: String,
pub status: i32,
pub error: String,
pub winner_timestamp_ms: u64,
pub winner_node_id: String,
pub winner_is_tombstone: bool,
pub request_index: u32,
pub write_concern: Option<Vec<u8>>,
pub winner_logical_counter: u64,
}Fields§
§key: String§status: i32§error: String§winner_timestamp_ms: u64§winner_node_id: String§winner_is_tombstone: bool§request_index: u32§write_concern: Option<Vec<u8>>Encoded WriteConcernResult, present only when a policy was requested.
winner_logical_counter: u64Implementations§
Source§impl MutationResult
impl MutationResult
Sourcepub fn status(&self) -> MutationStatus
pub fn status(&self) -> MutationStatus
Returns the enum value of status, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: MutationStatus)
pub fn set_status(&mut self, value: MutationStatus)
Sets status to the provided enum value.
Sourcepub fn write_concern(&self) -> &[u8] ⓘ
pub fn write_concern(&self) -> &[u8] ⓘ
Returns the value of write_concern, or the default value if write_concern is unset.
Trait Implementations§
Source§impl Clone for MutationResult
impl Clone for MutationResult
Source§impl Debug for MutationResult
impl Debug for MutationResult
Source§impl Default for MutationResult
impl Default for MutationResult
impl Eq for MutationResult
Source§impl Hash for MutationResult
impl Hash for MutationResult
Source§impl Message for MutationResult
impl Message for MutationResult
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 MutationResult
impl PartialEq for MutationResult
impl StructuralPartialEq for MutationResult
Auto Trait Implementations§
impl Freeze for MutationResult
impl RefUnwindSafe for MutationResult
impl Send for MutationResult
impl Sync for MutationResult
impl Unpin for MutationResult
impl UnsafeUnpin for MutationResult
impl UnwindSafe for MutationResult
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