pub enum TriggerValueSource {
NewField(String),
OldField(String),
Constant(Value),
Now,
}Expand description
Where one field of a trigger’s effect document gets its value from — the closed set of
transformations v1 supports. There is no scripting/plugin layer in this engine, so “effect”
cannot be arbitrary code the way it would be in the TS engine; it is this declared mapping,
evaluated by the engine itself against the firing operation’s old/new record.
Variants§
Trait Implementations§
Source§impl Clone for TriggerValueSource
impl Clone for TriggerValueSource
Source§impl Debug for TriggerValueSource
impl Debug for TriggerValueSource
Source§impl PartialEq for TriggerValueSource
impl PartialEq for TriggerValueSource
impl StructuralPartialEq for TriggerValueSource
Auto Trait Implementations§
impl Freeze for TriggerValueSource
impl RefUnwindSafe for TriggerValueSource
impl Send for TriggerValueSource
impl Sync for TriggerValueSource
impl Unpin for TriggerValueSource
impl UnsafeUnpin for TriggerValueSource
impl UnwindSafe for TriggerValueSource
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