pub struct TriggerDef {
pub name: String,
pub when: Option<Value>,
pub on_fields: Vec<String>,
pub cron: Option<String>,
pub body: TriggerBody,
}Fields§
§name: String显式名(空 = 缺省 <Schema>.<event>[<i>])
when: Option<Value>运行时条件(占位符替换后判定);None = 恒真
on_fields: Vec<String>字段级:仅这些字段「值真的变化」才进入判定;空 = 记录级
cron: Option<String>5 段 cron(分 时 日 月 周);仅 schedule 事件必填,其余事件禁给
body: TriggerBodyTrait Implementations§
Source§impl Clone for TriggerDef
impl Clone for TriggerDef
Auto Trait Implementations§
impl Freeze for TriggerDef
impl RefUnwindSafe for TriggerDef
impl Send for TriggerDef
impl Sync for TriggerDef
impl Unpin for TriggerDef
impl UnsafeUnpin for TriggerDef
impl UnwindSafe for TriggerDef
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