pub struct ValidatedOutput {Show 15 fields
pub record_schema_version: u16,
pub output_id: ValidatedOutputId,
pub schema_id: OutputSchemaId,
pub schema_version: SchemaVersion,
pub schema_fingerprint: ContentHash,
pub canonical_value_ref: ContentRef,
pub validation_report_refs: Vec<ValidationReportRef>,
pub validation_attempts: Vec<ValidationAttemptId>,
pub repair_attempts: Vec<RepairAttemptId>,
pub source_attempt_ids: Vec<AttemptId>,
pub content_refs: Vec<ContentRef>,
pub lineage: OutputLineage,
pub policy_refs: Vec<PolicyRef>,
pub privacy: PrivacyClass,
pub redacted_summary: String,
}Expand description
Carries the validated output 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_schema_version: u16Wire schema version for this record shape. Use it for compatibility checks before deserializing or replaying stored data.
output_id: ValidatedOutputIdStable output id used for typed lineage, lookup, or dedupe.
schema_id: OutputSchemaIdStable schema id used for typed lineage, lookup, or dedupe.
schema_version: SchemaVersionWire schema version used for compatibility checks.
schema_fingerprint: ContentHashDeterministic schema fingerprint used for stale checks, package evidence, or replay comparisons.
canonical_value_ref: ContentRefTyped canonical value ref reference. Resolving or executing it is a separate policy-gated step.
validation_report_refs: Vec<ValidationReportRef>Typed validation report refs references. Resolving them is separate from constructing this record.
validation_attempts: Vec<ValidationAttemptId>Validation policy applied before output is accepted as typed data. It controls validator selection, bounds, failure visibility, and local validation behavior.
repair_attempts: Vec<RepairAttemptId>Attempt identifier or attempt history for bounded retry/repair. Use it to preserve ordering and avoid retry loops that cannot be audited.
source_attempt_ids: Vec<AttemptId>Attempt identifier or attempt history for bounded retry/repair. Use it to preserve ordering and avoid retry loops that cannot be audited.
content_refs: Vec<ContentRef>Content references associated with this record; resolving them is a separate policy-gated step.
lineage: OutputLineageLineage information connecting this value to its source records. Use it to audit derived data without replaying side effects.
policy_refs: Vec<PolicyRef>Policy references that govern admission, projection, execution, or delivery.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
redacted_summary: StringRedacted human-readable summary safe for events, telemetry, and logs.
Implementations§
Source§impl ValidatedOutput
impl ValidatedOutput
Sourcepub fn from_validation_report(
params: ValidatedOutputParams,
report: &ValidationReportRecord,
) -> Result<Self, TypedOutputError>
pub fn from_validation_report( params: ValidatedOutputParams, report: &ValidationReportRecord, ) -> Result<Self, TypedOutputError>
Constructs this value from validation report. Use it when adapting canonical SDK records without introducing a second behavior path.
Sourcepub fn validate_shape(&self) -> Result<(), TypedOutputError>
pub fn validate_shape(&self) -> Result<(), TypedOutputError>
Validates the records::validated_output invariants and returns a typed error on failure. Validation is pure and does not perform I/O, dispatch, journal appends, or adapter calls.
Sourcepub fn validation_report_keys(&self) -> Vec<String>
pub fn validation_report_keys(&self) -> Vec<String>
Returns the validation report keys derived from 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 ValidatedOutput
impl Clone for ValidatedOutput
Source§fn clone(&self) -> ValidatedOutput
fn clone(&self) -> ValidatedOutput
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 ValidatedOutput
impl Debug for ValidatedOutput
Source§impl<'de> Deserialize<'de> for ValidatedOutput
impl<'de> Deserialize<'de> for ValidatedOutput
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 ValidatedOutput
Source§impl PartialEq for ValidatedOutput
impl PartialEq for ValidatedOutput
Source§fn eq(&self, other: &ValidatedOutput) -> bool
fn eq(&self, other: &ValidatedOutput) -> bool
self and other values to be equal, and is used by ==.