pub struct MutationResult {
pub conflict_detected: Option<bool>,
pub create_time: Option<DateTime<Utc>>,
pub key: Option<Key>,
pub update_time: Option<DateTime<Utc>>,
pub version: Option<i64>,
}
Expand description
The result of applying a mutation.
This type is not used in any activity, and only used as part of another schema.
Fields§
§conflict_detected: Option<bool>
Whether a conflict was detected for this mutation. Always false when a conflict detection strategy field is not set in the mutation.
create_time: Option<DateTime<Utc>>
The create time of the entity. This field will not be set after a ‘delete’.
key: Option<Key>
The automatically allocated key. Set only when the mutation allocated a key.
update_time: Option<DateTime<Utc>>
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’.
version: Option<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.
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§fn default() -> MutationResult
fn default() -> MutationResult
Source§impl<'de> Deserialize<'de> for MutationResult
impl<'de> Deserialize<'de> for MutationResult
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>,
Source§impl Serialize for MutationResult
impl Serialize for MutationResult
impl Part 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more