pub struct TableHooks {
pub before_insert: Vec<String>,
pub after_insert: Vec<String>,
pub before_update: Vec<String>,
pub after_update: Vec<String>,
pub before_delete: Vec<String>,
pub after_delete: Vec<String>,
}Expand description
Table hook bindings
Fields§
§before_insert: Vec<String>Functions to call before INSERT
after_insert: Vec<String>Functions to call after INSERT
before_update: Vec<String>Functions to call before UPDATE
after_update: Vec<String>Functions to call after UPDATE
before_delete: Vec<String>Functions to call before DELETE
after_delete: Vec<String>Functions to call after DELETE
Trait Implementations§
Source§impl Clone for TableHooks
impl Clone for TableHooks
Source§fn clone(&self) -> TableHooks
fn clone(&self) -> TableHooks
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 TableHooks
impl Debug for TableHooks
Source§impl Default for TableHooks
impl Default for TableHooks
Source§fn default() -> TableHooks
fn default() -> TableHooks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TableHooks
impl RefUnwindSafe for TableHooks
impl Send for TableHooks
impl Sync for TableHooks
impl Unpin for TableHooks
impl UnsafeUnpin for TableHooks
impl UnwindSafe for TableHooks
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