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