Struct google_api_proto::google::datastore::v1::MutationResult
source · pub struct MutationResult {
pub key: Option<Key>,
pub version: i64,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub conflict_detected: bool,
}
Expand description
The result of applying a mutation.
Fields§
§key: Option<Key>
The automatically allocated key. Set only when the mutation allocated a key.
version: i64
The version of the entity on the server after processing the mutation. If the mutation doesn’t change anything on the server, then the version will be the version of the current entity or, if no entity is present, a version that is strictly greater than the version of any previous entity and less than the version of any possible future entity.
create_time: Option<Timestamp>
The create time of the entity. This field will not be set after a ‘delete’.
update_time: Option<Timestamp>
The update time of the entity on the server after processing the mutation. If the mutation doesn’t change anything on the server, then the timestamp will be the update timestamp of the current entity. This field will not be set after a ‘delete’.
conflict_detected: bool
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
Trait Implementations§
source§impl Clone for MutationResult
impl Clone for MutationResult
source§fn clone(&self) -> MutationResult
fn clone(&self) -> MutationResult
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MutationResult
impl Debug for MutationResult
source§impl Default for MutationResult
impl Default for MutationResult
source§impl Message for MutationResult
impl Message for MutationResult
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for MutationResult
impl PartialEq for MutationResult
source§fn eq(&self, other: &MutationResult) -> bool
fn eq(&self, other: &MutationResult) -> bool
self
and other
values to be equal, and is used
by ==
.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 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request