pub struct StreamIntervention {
pub intervention_id: StreamInterventionId,
pub rule_ref: EntityRef,
pub requested_action: StreamAction,
pub applied_action: Option<StreamAction>,
pub match_ref: StreamMatchRef,
pub redacted_match: RedactedMatch,
pub partial_output_policy: PartialOutputPolicy,
pub policy_refs: Vec<PolicyRef>,
pub effect_intent_ref: Option<EffectId>,
pub effect_result_ref: Option<EffectId>,
pub effect_intent: Option<EffectIntent>,
pub effect_result: Option<EffectResult>,
}Expand description
Carries the stream intervention record payload for journal, event, or fixture surfaces. Creating or cloning it only preserves serialized SDK state; append, publish, replay, or export effects are documented on the runtime and port methods that store it.
Fields§
§intervention_id: StreamInterventionIdStable intervention id used for typed lineage, lookup, or dedupe.
rule_ref: EntityRefTyped rule ref reference. Resolving or executing it is a separate policy-gated step.
requested_action: StreamActionRequested action used by this record or request.
applied_action: Option<StreamAction>Optional applied action value. When absent, callers should use the documented default or skip that optional behavior.
match_ref: StreamMatchRefTyped match ref reference. Resolving or executing it is a separate policy-gated step.
redacted_match: RedactedMatchRedacted match used by this record or request.
partial_output_policy: PartialOutputPolicyPartial output policy used by this record or request.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
effect_intent_ref: Option<EffectId>Typed effect intent ref reference. Resolving or executing it is a separate policy-gated step.
effect_result_ref: Option<EffectId>Typed effect result ref reference. Resolving or executing it is a separate policy-gated step.
effect_intent: Option<EffectIntent>Optional effect intent value. When absent, callers should use the documented default or skip that optional behavior.
effect_result: Option<EffectResult>Optional effect result value. When absent, callers should use the documented default or skip that optional behavior.
Implementations§
Source§impl StreamIntervention
impl StreamIntervention
Sourcepub fn proposed(rule: &StreamRule, redacted_match: RedactedMatch) -> Self
pub fn proposed(rule: &StreamRule, redacted_match: RedactedMatch) -> Self
Builds the proposed value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn with_effect_intent(self, effect_id: EffectId) -> Self
pub fn with_effect_intent(self, effect_id: EffectId) -> Self
Returns this value with its effect intent setting replaced. The method follows builder-style data construction and does not execute external work.
Sourcepub fn with_effect_result(self, result: EffectResult) -> Self
pub fn with_effect_result(self, result: EffectResult) -> Self
Returns this value with its effect result setting replaced. The method follows builder-style data construction and does not execute external work.
Sourcepub fn effect_kind_name(&self) -> Option<&'static str>
pub fn effect_kind_name(&self) -> Option<&'static str>
Returns the effect kind name currently held by this value. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Trait Implementations§
Source§impl Clone for StreamIntervention
impl Clone for StreamIntervention
Source§fn clone(&self) -> StreamIntervention
fn clone(&self) -> StreamIntervention
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamIntervention
impl Debug for StreamIntervention
Source§impl<'de> Deserialize<'de> for StreamIntervention
impl<'de> Deserialize<'de> for StreamIntervention
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>,
impl Eq for StreamIntervention
Source§impl PartialEq for StreamIntervention
impl PartialEq for StreamIntervention
Source§fn eq(&self, other: &StreamIntervention) -> bool
fn eq(&self, other: &StreamIntervention) -> bool
self and other values to be equal, and is used by ==.