pub struct RawOutputContentPolicy {
pub policy_ref: PolicyRef,
pub allow_raw_content: bool,
pub retention_named: bool,
pub redaction_policy_named: bool,
pub allowed_sink_ref: Option<OutputSinkRef>,
pub byte_limit: u64,
}Expand description
Carries the raw output content policy 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§
§policy_ref: PolicyRefPolicy reference that must be resolved by the host or runtime before execution.
allow_raw_content: boolBoolean policy/capability flag for whether allow raw content is enabled.
retention_named: boolRetention class for referenced content or records. Stores and telemetry sinks use it to decide how long evidence may be kept.
redaction_policy_named: boolWhether redaction policy named is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
allowed_sink_ref: Option<OutputSinkRef>Typed allowed sink ref reference. Resolving or executing it is a separate policy-gated step.
byte_limit: u64Byte size or byte limit for byte limit. Use it to enforce bounded reads, writes, summaries, or parser output.
Implementations§
Source§impl RawOutputContentPolicy
impl RawOutputContentPolicy
Sourcepub fn deny() -> Self
pub fn deny() -> Self
Returns an updated records::output_delivery value with deny applied. This is data construction only and does not execute the configured behavior.
Sourcepub fn allow_for_sink(
policy_ref: PolicyRef,
sink_ref: OutputSinkRef,
byte_limit: u64,
) -> Self
pub fn allow_for_sink( policy_ref: PolicyRef, sink_ref: OutputSinkRef, byte_limit: u64, ) -> Self
Returns an updated value with allow for sink configured. This is data-only and does not perform I/O, call host ports, append journals, publish events, or start processes.
Sourcepub fn allows_raw_for(&self, sink_ref: &OutputSinkRef, byte_len: usize) -> bool
pub fn allows_raw_for(&self, sink_ref: &OutputSinkRef, byte_len: usize) -> bool
Returns whether allows raw for applies for this contract. 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 RawOutputContentPolicy
impl Clone for RawOutputContentPolicy
Source§fn clone(&self) -> RawOutputContentPolicy
fn clone(&self) -> RawOutputContentPolicy
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 RawOutputContentPolicy
impl Debug for RawOutputContentPolicy
Source§impl<'de> Deserialize<'de> for RawOutputContentPolicy
impl<'de> Deserialize<'de> for RawOutputContentPolicy
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 RawOutputContentPolicy
impl PartialEq for RawOutputContentPolicy
Source§fn eq(&self, other: &RawOutputContentPolicy) -> bool
fn eq(&self, other: &RawOutputContentPolicy) -> bool
self and other values to be equal, and is used by ==.