pub enum PushAction {
Create {
dst: String,
new: ObjectId,
},
Update {
dst: String,
old: ObjectId,
new: ObjectId,
},
Delete {
dst: String,
old: Option<ObjectId>,
},
}Expand description
A typed push action that preserves the caller’s exact old/new/delete intent.
Variants§
Trait Implementations§
Source§impl Clone for PushAction
impl Clone for PushAction
Source§fn clone(&self) -> PushAction
fn clone(&self) -> PushAction
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 PushAction
impl Debug for PushAction
impl Eq for PushAction
Source§impl From<PushAction> for PushCommand
impl From<PushAction> for PushCommand
Source§fn from(value: PushAction) -> Self
fn from(value: PushAction) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PushAction
impl PartialEq for PushAction
Source§fn eq(&self, other: &PushAction) -> bool
fn eq(&self, other: &PushAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PushAction
Auto Trait Implementations§
impl Freeze for PushAction
impl RefUnwindSafe for PushAction
impl Send for PushAction
impl Sync for PushAction
impl Unpin for PushAction
impl UnsafeUnpin for PushAction
impl UnwindSafe for PushAction
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