pub struct StreamRuleBuilder { /* private fields */ }Expand description
Carries the stream rule builder 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.
Implementations§
Source§impl StreamRuleBuilder
impl StreamRuleBuilder
Sourcepub fn new(id: StreamRuleId) -> Self
pub fn new(id: StreamRuleId) -> Self
Creates a new records::stream value with explicit caller-provided inputs. This constructor is data-only and performs no I/O or external side effects.
Sourcepub fn source(self, source: SourceRef) -> Self
pub fn source(self, source: SourceRef) -> Self
Returns an updated records::stream value with source applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn matcher(self, matcher: StreamMatcher) -> Self
pub fn matcher(self, matcher: StreamMatcher) -> Self
Returns an updated value with matcher configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn on(self, channel: StreamChannel) -> Self
pub fn on(self, channel: StreamChannel) -> Self
Returns an updated value with on configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn action(self, action: StreamAction) -> Self
pub fn action(self, action: StreamAction) -> Self
Returns an updated records::stream value with action applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn repeat(self, repeat: RepeatPolicy) -> Self
pub fn repeat(self, repeat: RepeatPolicy) -> Self
Returns an updated value with repeat configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn policy(self, policy_ref: PolicyRef) -> Self
pub fn policy(self, policy_ref: PolicyRef) -> Self
Returns policy for the current value. This is a read-only or data-construction helper unless the method body explicitly calls a port or store.
Sourcepub fn build(self) -> Result<StreamRule, AgentError>
pub fn build(self) -> Result<StreamRule, AgentError>
Finishes builder validation and returns the configured value. This is data-only unless the surrounding builder explicitly documents adapter or store access.
Trait Implementations§
Source§impl Clone for StreamRuleBuilder
impl Clone for StreamRuleBuilder
Source§fn clone(&self) -> StreamRuleBuilder
fn clone(&self) -> StreamRuleBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more