pub struct DefineEvent {
pub name: Spanned<String>,
pub table: Spanned<String>,
pub when: Option<Spanned<Expr>>,
pub then: Option<Spanned<Expr>>,
}Expand description
DEFINE EVENT — a trigger with its condition and body.
Fields§
§name: Spanned<String>The event name.
table: Spanned<String>The table the event fires on.
when: Option<Spanned<Expr>>WHEN <expr> — the trigger condition.
then: Option<Spanned<Expr>>THEN { ... } / THEN <expr> — a block lowers to Expr::Block.
Trait Implementations§
Source§impl Clone for DefineEvent
impl Clone for DefineEvent
Source§fn clone(&self) -> DefineEvent
fn clone(&self) -> DefineEvent
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 DefineEvent
impl Debug for DefineEvent
Source§impl PartialEq for DefineEvent
impl PartialEq for DefineEvent
impl StructuralPartialEq for DefineEvent
Auto Trait Implementations§
impl Freeze for DefineEvent
impl RefUnwindSafe for DefineEvent
impl Send for DefineEvent
impl Sync for DefineEvent
impl Unpin for DefineEvent
impl UnsafeUnpin for DefineEvent
impl UnwindSafe for DefineEvent
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