pub struct ContentResolutionPolicy {
pub caller_ref: EntityRef,
pub destination_ref: DestinationRef,
pub purpose: ContentResolutionPurpose,
pub allowed_privacy_classes: Vec<PrivacyClass>,
pub max_bytes: u64,
pub require_hash_match: bool,
pub retention_use: RetentionUse,
pub on_missing: MissingContentPolicy,
pub allow_raw_content: bool,
pub policy_refs: Vec<PolicyRef>,
}Expand description
Carries the content resolution 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§
§caller_ref: EntityRefTyped caller ref reference. Resolving or executing it is a separate policy-gated step.
destination_ref: DestinationRefTyped destination reference that records where this item is being sent or projected.
purpose: ContentResolutionPurposePurpose used by this record or request.
allowed_privacy_classes: Vec<PrivacyClass>Privacy classification for the value. Projection, telemetry, and delivery paths use it to enforce redaction and retention.
max_bytes: u64Maximum byte budget the caller requested before truncation or summary behavior is applied.
require_hash_match: boolBoolean policy/capability flag for whether require hash match is enabled.
retention_use: RetentionUseRetention class for referenced content or records. Stores and telemetry sinks use it to decide how long evidence may be kept.
on_missing: MissingContentPolicyOn missing used by this record or request.
allow_raw_content: boolBoolean policy/capability flag for whether allow raw content is enabled.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
Implementations§
Source§impl ContentResolutionPolicy
impl ContentResolutionPolicy
Sourcepub fn redacted_context(
caller_ref: EntityRef,
destination_ref: DestinationRef,
policy_ref: PolicyRef,
) -> Self
pub fn redacted_context( caller_ref: EntityRef, destination_ref: DestinationRef, policy_ref: PolicyRef, ) -> Self
Builds the redacted context value. This is data construction and performs no I/O, journal append, event publication, or process work.
Sourcepub fn raw_context(
caller_ref: EntityRef,
destination_ref: DestinationRef,
policy_ref: PolicyRef,
max_bytes: u64,
) -> Self
pub fn raw_context( caller_ref: EntityRef, destination_ref: DestinationRef, policy_ref: PolicyRef, max_bytes: u64, ) -> Self
Builds the raw context value with the documented defaults. 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 ContentResolutionPolicy
impl Clone for ContentResolutionPolicy
Source§fn clone(&self) -> ContentResolutionPolicy
fn clone(&self) -> ContentResolutionPolicy
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 ContentResolutionPolicy
impl Debug for ContentResolutionPolicy
Source§impl<'de> Deserialize<'de> for ContentResolutionPolicy
impl<'de> Deserialize<'de> for ContentResolutionPolicy
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 ContentResolutionPolicy
Source§impl PartialEq for ContentResolutionPolicy
impl PartialEq for ContentResolutionPolicy
Source§fn eq(&self, other: &ContentResolutionPolicy) -> bool
fn eq(&self, other: &ContentResolutionPolicy) -> bool
self and other values to be equal, and is used by ==.