pub enum DsonOperation {
ObjectStart {
path: String,
},
ObjectEnd {
path: String,
},
ArrayStart {
path: String,
},
ArrayEnd {
path: String,
},
FieldAdd {
path: String,
value: OperationValue,
},
FieldModify {
path: String,
old_value: Option<OperationValue>,
new_value: OperationValue,
},
FieldDelete {
path: String,
},
BatchExecute {
operations: Vec<DsonOperation>,
},
}Expand description
DSON operations for document manipulation
Variants§
ObjectStart
Start a new object at the specified path
ObjectEnd
End the current object at the specified path
ArrayStart
Start a new array at the specified path
ArrayEnd
End the current array at the specified path
FieldAdd
Add a new field at path with value
FieldModify
Modify existing field at path
FieldDelete
Delete field at path
BatchExecute
Execute multiple operations in batch
Fields
§
operations: Vec<DsonOperation>Operations to execute
Trait Implementations§
Source§impl Clone for DsonOperation
impl Clone for DsonOperation
Source§fn clone(&self) -> DsonOperation
fn clone(&self) -> DsonOperation
Returns a duplicate of the value. Read more
1.0.0 · 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 DsonOperation
impl Debug for DsonOperation
Source§impl PartialEq for DsonOperation
impl PartialEq for DsonOperation
impl StructuralPartialEq for DsonOperation
Auto Trait Implementations§
impl Freeze for DsonOperation
impl RefUnwindSafe for DsonOperation
impl Send for DsonOperation
impl Sync for DsonOperation
impl Unpin for DsonOperation
impl UnwindSafe for DsonOperation
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,
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