pub enum PluginDatabaseAfterInput {
Create {
query: Create,
result: DbRecord,
},
Update {
query: Update,
result: Option<DbRecord>,
},
UpdateMany {
query: UpdateMany,
result: u64,
},
Delete {
query: Delete,
snapshots: Vec<DbRecord>,
},
DeleteMany {
query: DeleteMany,
snapshots: Vec<DbRecord>,
result: u64,
},
}Expand description
Query and adapter result passed to a database hook after the operation runs.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PluginDatabaseAfterInput
impl Clone for PluginDatabaseAfterInput
Source§fn clone(&self) -> PluginDatabaseAfterInput
fn clone(&self) -> PluginDatabaseAfterInput
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 PluginDatabaseAfterInput
impl Debug for PluginDatabaseAfterInput
Source§impl PartialEq for PluginDatabaseAfterInput
impl PartialEq for PluginDatabaseAfterInput
Source§fn eq(&self, other: &PluginDatabaseAfterInput) -> bool
fn eq(&self, other: &PluginDatabaseAfterInput) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PluginDatabaseAfterInput
Auto Trait Implementations§
impl Freeze for PluginDatabaseAfterInput
impl RefUnwindSafe for PluginDatabaseAfterInput
impl Send for PluginDatabaseAfterInput
impl Sync for PluginDatabaseAfterInput
impl Unpin for PluginDatabaseAfterInput
impl UnsafeUnpin for PluginDatabaseAfterInput
impl UnwindSafe for PluginDatabaseAfterInput
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