pub struct StreamRuleRecord {
pub record_kind: StreamRuleRecordKind,
pub rule_id: StreamRuleId,
pub rule_version: RuleVersion,
pub channel: Option<StreamChannel>,
pub direction: Option<StreamDirection>,
pub cursor: Option<StreamCursor>,
pub redacted_match: Option<RedactedMatch>,
pub intervention: Option<StreamIntervention>,
pub repeat_state: Option<StreamRuleRepeatStateSnapshot>,
pub policy_refs: Vec<PolicyRef>,
pub redacted_summary: String,
}Expand description
Carries the stream rule record 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§
§record_kind: StreamRuleRecordKindKind discriminator for record kind. Use it to route finite match arms without parsing display text.
rule_id: StreamRuleIdStable rule id used for typed lineage, lookup, or dedupe.
rule_version: RuleVersionVersion string for this capability, package, or protocol surface. Use it for compatibility checks during package or adapter resolution.
channel: Option<StreamChannel>Optional channel value. When absent, callers should use the documented default or skip that optional behavior.
direction: Option<StreamDirection>Optional direction value. When absent, callers should use the documented default or skip that optional behavior.
cursor: Option<StreamCursor>Cursor identifying a replay, export, or subscription position. Use it to resume without widening the original scope.
redacted_match: Option<RedactedMatch>Optional redacted match value. When absent, callers should use the documented default or skip that optional behavior.
intervention: Option<StreamIntervention>Optional intervention value. When absent, callers should use the documented default or skip that optional behavior.
repeat_state: Option<StreamRuleRepeatStateSnapshot>Optional repeat state value. When absent, callers should use the documented default or skip that optional behavior.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
Implementations§
Source§impl StreamRuleRecord
impl StreamRuleRecord
Sourcepub fn matched(rule: &StreamRule, intervention: &StreamIntervention) -> Self
pub fn matched(rule: &StreamRule, intervention: &StreamIntervention) -> Self
Builds the matched value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn repeat_state(
rule: &StreamRule,
repeat_state: StreamRuleRepeatStateSnapshot,
) -> Self
pub fn repeat_state( rule: &StreamRule, repeat_state: StreamRuleRepeatStateSnapshot, ) -> Self
Builds the repeat state value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn to_journal_record(&self, base: JournalRecordBase) -> JournalRecord
pub fn to_journal_record(&self, base: JournalRecordBase) -> JournalRecord
Converts this value into journal record data. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn event_kind_name(&self) -> &'static str
pub fn event_kind_name(&self) -> &'static str
Returns the event 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 StreamRuleRecord
impl Clone for StreamRuleRecord
Source§fn clone(&self) -> StreamRuleRecord
fn clone(&self) -> StreamRuleRecord
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 StreamRuleRecord
impl Debug for StreamRuleRecord
Source§impl<'de> Deserialize<'de> for StreamRuleRecord
impl<'de> Deserialize<'de> for StreamRuleRecord
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>,
Source§impl PartialEq for StreamRuleRecord
impl PartialEq for StreamRuleRecord
Source§fn eq(&self, other: &StreamRuleRecord) -> bool
fn eq(&self, other: &StreamRuleRecord) -> bool
self and other values to be equal, and is used by ==.