#[non_exhaustive]pub struct MutationOptions {
pub expected_revision: Option<Revision>,
}Expand description
Common options for a mutation with no additional controls.
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.expected_revision: Option<Revision>An optional optimistic precondition on the target node.
Implementations§
Source§impl MutationOptions
impl MutationOptions
Sourcepub const fn expected_revision(
self,
expected_revision: Option<Revision>,
) -> Self
pub const fn expected_revision( self, expected_revision: Option<Revision>, ) -> Self
Sets the optimistic revision precondition.
Trait Implementations§
Source§impl Clone for MutationOptions
impl Clone for MutationOptions
Source§fn clone(&self) -> MutationOptions
fn clone(&self) -> MutationOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MutationOptions
Source§impl Debug for MutationOptions
impl Debug for MutationOptions
Source§impl Default for MutationOptions
impl Default for MutationOptions
Source§fn default() -> MutationOptions
fn default() -> MutationOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MutationOptions
impl<'de> Deserialize<'de> for MutationOptions
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 MutationOptions
Source§impl PartialEq for MutationOptions
impl PartialEq for MutationOptions
Source§impl Serialize for MutationOptions
impl Serialize for MutationOptions
impl StructuralPartialEq for MutationOptions
Auto Trait Implementations§
impl Freeze for MutationOptions
impl RefUnwindSafe for MutationOptions
impl Send for MutationOptions
impl Sync for MutationOptions
impl Unpin for MutationOptions
impl UnsafeUnpin for MutationOptions
impl UnwindSafe for MutationOptions
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