pub enum OperationResult {
Success,
DocumentUpdated {
collection: CollectionName,
header: Header,
},
DocumentDeleted {
collection: CollectionName,
id: DocumentId,
},
}
Expand description
Information about the result of each Operation
in a transaction.
Variants§
Success
An operation succeeded but had no information to output.
DocumentUpdated
Fields
§
collection: CollectionName
The id of the Collection
of the updated Document
.
A Document
was updated.
DocumentDeleted
Fields
§
collection: CollectionName
The id of the Collection
of the deleted Document
.
§
id: DocumentId
The id of the deleted Document
.
A Document
was deleted.
Trait Implementations§
source§impl Clone for OperationResult
impl Clone for OperationResult
source§fn clone(&self) -> OperationResult
fn clone(&self) -> OperationResult
Returns a copy 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 OperationResult
impl Debug for OperationResult
source§impl<'de> Deserialize<'de> for OperationResult
impl<'de> Deserialize<'de> for OperationResult
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
Auto Trait Implementations§
impl RefUnwindSafe for OperationResult
impl Send for OperationResult
impl Sync for OperationResult
impl Unpin for OperationResult
impl UnwindSafe for OperationResult
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