Enum bonsaidb::core::transaction::OperationResult
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: CollectionNameThe id of the Collection of the updated Document.
A Document was updated.
DocumentDeleted
Fields
§
collection: CollectionNameThe id of the Collection of the deleted Document.
§
id: DocumentIdThe id of the deleted Document.
A Document was deleted.
Trait Implementations§
§impl Clone for OperationResult
impl Clone for OperationResult
§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 more§impl Debug for OperationResult
impl Debug for OperationResult
§impl<'de> Deserialize<'de> for OperationResult
impl<'de> Deserialize<'de> for OperationResult
§fn deserialize<__D>(
__deserializer: __D
) -> Result<OperationResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<OperationResult, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Serialize for OperationResult
impl Serialize for OperationResult
§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 RefUnwindSafe for OperationResult
impl Send for OperationResult
impl Sync for OperationResult
impl Unpin for OperationResult
impl UnwindSafe for OperationResult
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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