pub struct StateTrigger {Show 18 fields
pub trigger_id: String,
pub source_collection: String,
pub change_kind: StateTriggerChangeKind,
pub predicate: Option<StateTriggerPredicate>,
pub target_capability: String,
pub tenant_id: String,
pub application_id: String,
pub environment: String,
pub definition_revision: String,
pub requested_by: Subject,
pub authorization_snapshot: SignedGrant,
pub capability_snapshot: BTreeSet<String>,
pub connection_scopes: BTreeSet<String>,
pub priority: i32,
pub retry_policy: WorkloadRetryPolicy,
pub timeouts: WorkloadTimeouts,
pub not_before: Option<i64>,
pub enabled: bool,
}Fields§
§trigger_id: String§source_collection: String§change_kind: StateTriggerChangeKind§predicate: Option<StateTriggerPredicate>§target_capability: String§tenant_id: String§application_id: String§environment: String§definition_revision: String§requested_by: Subject§capability_snapshot: BTreeSet<String>§connection_scopes: BTreeSet<String>§priority: i32§retry_policy: WorkloadRetryPolicy§timeouts: WorkloadTimeouts§not_before: Option<i64>§enabled: boolImplementations§
Source§impl StateTrigger
impl StateTrigger
Sourcepub fn matches(&self, operation: &Operation) -> bool
pub fn matches(&self, operation: &Operation) -> bool
Whether this trigger matches a committed operation.
The decision itself lives in crate::trigger_contract, the
runtime-independent deterministic contract. This method is the
projection from FeltDB’s durable types onto that contract’s input; it
holds no matching logic of its own, so the native and WASM contract
implementations decide production matching identically by construction.
Sourcepub fn contract_input(&self, operation: &Operation) -> TriggerMatchInput
pub fn contract_input(&self, operation: &Operation) -> TriggerMatchInput
The contract input this trigger and operation produce, for provenance.
Trait Implementations§
Source§impl Clone for StateTrigger
impl Clone for StateTrigger
Source§impl Debug for StateTrigger
impl Debug for StateTrigger
Source§impl<'de> Deserialize<'de> for StateTrigger
impl<'de> Deserialize<'de> for StateTrigger
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 StateTrigger
impl RefUnwindSafe for StateTrigger
impl Send for StateTrigger
impl Sync for StateTrigger
impl Unpin for StateTrigger
impl UnsafeUnpin for StateTrigger
impl UnwindSafe for StateTrigger
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