pub enum TransactionOperationKind {
Insert,
Update,
Delete,
Put,
}Variants§
Insert
Create; refused with PRECONDITION_FAILED (present) when the record exists.
Update
Merge value into the existing record; refused when it does not exist.
Delete
Put
Create or replace: the record becomes exactly value. The canonical form of an
unconditional or version-guarded collection write, which creates an absent record
and replaces an existing one on every runtime (docs/reference/public-api.md,
“Collection write semantics”). Guards travel as preconditions, as for the others.
Trait Implementations§
Source§impl Clone for TransactionOperationKind
impl Clone for TransactionOperationKind
Source§fn clone(&self) -> TransactionOperationKind
fn clone(&self) -> TransactionOperationKind
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 moreSource§impl Debug for TransactionOperationKind
impl Debug for TransactionOperationKind
Source§impl<'de> Deserialize<'de> for TransactionOperationKind
impl<'de> Deserialize<'de> for TransactionOperationKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionOperationKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionOperationKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TransactionOperationKind
impl Serialize for TransactionOperationKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TransactionOperationKind
impl RefUnwindSafe for TransactionOperationKind
impl Send for TransactionOperationKind
impl Sync for TransactionOperationKind
impl Unpin for TransactionOperationKind
impl UnsafeUnpin for TransactionOperationKind
impl UnwindSafe for TransactionOperationKind
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