pub struct TriggerSubscription {
pub phase: TriggerPhase,
pub events: TriggerEventMask,
pub labels: Option<Vec<SmolStr>>,
pub edge_types: Option<Vec<SmolStr>>,
pub properties: Option<Vec<SmolStr>>,
pub predicate_source: Option<String>,
pub fire_mode: FireMode,
pub docs: String,
}Expand description
Selectors describing the events this trigger subscribes to.
Fields§
§phase: TriggerPhasePhase in the mutation lifecycle.
events: TriggerEventMaskEvent-kind bitmask (NodeCreate | NodeUpdate | EdgeDelete | ...).
labels: Option<Vec<SmolStr>>Optional label allow-list; None means all labels.
edge_types: Option<Vec<SmolStr>>Optional edge-type allow-list.
properties: Option<Vec<SmolStr>>Optional property allow-list — for *Update events, restrict to
updates touching these properties.
predicate_source: Option<String>Cypher boolean expression evaluated per event (parsed by host).
fire_mode: FireModeFiring mode (Sync / Async / Eventual).
docs: StringMarkdown docs.
Trait Implementations§
Source§impl Clone for TriggerSubscription
impl Clone for TriggerSubscription
Source§fn clone(&self) -> TriggerSubscription
fn clone(&self) -> TriggerSubscription
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 moreAuto Trait Implementations§
impl Freeze for TriggerSubscription
impl RefUnwindSafe for TriggerSubscription
impl Send for TriggerSubscription
impl Sync for TriggerSubscription
impl Unpin for TriggerSubscription
impl UnsafeUnpin for TriggerSubscription
impl UnwindSafe for TriggerSubscription
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more