pub struct TableHooks {
pub before_create: Option<String>,
pub after_create: Option<String>,
pub before_update: Option<String>,
pub after_update: Option<String>,
pub before_delete: Option<String>,
pub after_delete: Option<String>,
}Expand description
CRUD lifecycle hooks for a table. Each field names a WASM handler function.
Fields§
§before_create: Option<String>§after_create: Option<String>§before_update: Option<String>§after_update: Option<String>§before_delete: Option<String>§after_delete: Option<String>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
Source§impl<'de> Deserialize<'de> for TableHooks
impl<'de> Deserialize<'de> for TableHooks
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 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