pub struct RuleDef {
pub name: String,
pub table: String,
pub event: String,
pub instead: bool,
pub when_condition: String,
pub commands: Vec<String>,
}Expand description
v7.39 (round 139) — a catalogued query-rewrite RULE. Stored flat like
TriggerDef, keyed by (name, table). Command / WHEN text is deparsed SQL
re-parsed at rewrite time (the same round-trip trick as
TriggerDef.when_condition). Persisted from FILE_VERSION 71.
Fields§
§name: String§table: String§event: StringEvent keyword, uppercased: INSERT / UPDATE / DELETE / SELECT.
instead: booltrue = DO INSTEAD, false = DO ALSO.
when_condition: StringDeparsed WHERE predicate text; empty = unconditional.
commands: Vec<String>Deparsed DO command statements; empty = NOTHING.
Trait Implementations§
impl Eq for RuleDef
impl StructuralPartialEq for RuleDef
Auto Trait Implementations§
impl Freeze for RuleDef
impl RefUnwindSafe for RuleDef
impl Send for RuleDef
impl Sync for RuleDef
impl Unpin for RuleDef
impl UnsafeUnpin for RuleDef
impl UnwindSafe for RuleDef
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