pub struct TriggerSpec {
pub name: String,
pub query: String,
pub phase: String,
pub extra_params: HashMap<String, Property>,
pub installed_at_ms: i64,
pub paused: bool,
}Expand description
Persisted trigger spec. Roundtrips through serde_json for
storage in the trigger_meta column family. The name field
duplicates the storage key — kept on the value too so list /
show output is self-describing.
Fields§
§name: String§query: String§phase: Stringphase. One of "before" / "after" / "afterAsync" /
"rollback".
extra_params: HashMap<String, Property>Pre-evaluated extra params from the install-time config
map’s params entry. Captured at install time to keep
the firing path purely local.
installed_at_ms: i64Wall-clock millis since UNIX epoch when the trigger was registered.
paused: booltrue when paused via apoc.trigger.stop. Paused
triggers stay in the registry (and replicate) but are
skipped on every commit until apoc.trigger.start flips
the flag back. Defaults to false for backward
compatibility with pre-pause stored specs.
Trait Implementations§
Source§impl Clone for TriggerSpec
impl Clone for TriggerSpec
Source§fn clone(&self) -> TriggerSpec
fn clone(&self) -> TriggerSpec
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 TriggerSpec
impl Debug for TriggerSpec
Source§impl<'de> Deserialize<'de> for TriggerSpec
impl<'de> Deserialize<'de> for TriggerSpec
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 TriggerSpec
impl RefUnwindSafe for TriggerSpec
impl Send for TriggerSpec
impl Sync for TriggerSpec
impl Unpin for TriggerSpec
impl UnsafeUnpin for TriggerSpec
impl UnwindSafe for TriggerSpec
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