pub enum MutationState {
Preview,
Applied {
history_id: u64,
},
}Expand description
The lifecycle of a mutation result, with a history id exactly when applied.
Serializes as applied plus the optional history_id.
Variants§
Implementations§
Source§impl MutationState
impl MutationState
pub fn is_applied(self) -> bool
pub fn history_id(self) -> Option<u64>
Trait Implementations§
Source§impl Clone for MutationState
impl Clone for MutationState
impl Copy for MutationState
Source§impl Debug for MutationState
impl Debug for MutationState
Source§impl<'de> Deserialize<'de> for MutationState
impl<'de> Deserialize<'de> for MutationState
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
impl Eq for MutationState
Source§impl PartialEq for MutationState
impl PartialEq for MutationState
Source§impl Serialize for MutationState
impl Serialize for MutationState
impl StructuralPartialEq for MutationState
Auto Trait Implementations§
impl Freeze for MutationState
impl RefUnwindSafe for MutationState
impl Send for MutationState
impl Sync for MutationState
impl Unpin for MutationState
impl UnsafeUnpin for MutationState
impl UnwindSafe for MutationState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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