pub struct StructuredOutputResult<T> {
pub schema_id: OutputSchemaId,
pub schema_version: SchemaVersion,
pub validated_output_id: ValidatedOutputId,
pub validation_attempts: Vec<ValidationAttemptId>,
pub repair_attempts: Vec<RepairAttemptId>,
pub source_attempt_ids: Vec<AttemptId>,
pub output: T,
pub output_ref: ContentRef,
pub lineage: OutputLineage,
pub policy_refs: Vec<PolicyRef>,
pub privacy: PrivacyClass,
pub redacted_summary: String,
}Expand description
Carries the structured output result 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§
§schema_id: OutputSchemaIdStable schema id used for typed lineage, lookup, or dedupe.
schema_version: SchemaVersionWire schema version used for compatibility checks.
validated_output_id: ValidatedOutputIdStable validated output id used for typed lineage, lookup, or dedupe.
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.
output: TOutput used by this record or request.
output_ref: ContentRefTyped output ref reference. Resolving or executing it 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<T> StructuredOutputResult<T>
impl<T> StructuredOutputResult<T>
Sourcepub fn from_publication<D>(
validated_output: &ValidatedOutput,
publication: &TypedResultPublicationRecord,
deserializer: &D,
) -> Result<Self, TypedOutputError>where
D: TypedOutputDeserializer<T>,
pub fn from_publication<D>(
validated_output: &ValidatedOutput,
publication: &TypedResultPublicationRecord,
deserializer: &D,
) -> Result<Self, TypedOutputError>where
D: TypedOutputDeserializer<T>,
Constructs this value from publication. Use it when adapting canonical SDK records without introducing a second behavior path.
Trait Implementations§
Source§impl<T: Clone> Clone for StructuredOutputResult<T>
impl<T: Clone> Clone for StructuredOutputResult<T>
Source§fn clone(&self) -> StructuredOutputResult<T>
fn clone(&self) -> StructuredOutputResult<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T: Debug> Debug for StructuredOutputResult<T>
impl<T: Debug> Debug for StructuredOutputResult<T>
Source§impl<'de, T> Deserialize<'de> for StructuredOutputResult<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for StructuredOutputResult<T>where
T: Deserialize<'de>,
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<T: PartialEq> PartialEq for StructuredOutputResult<T>
impl<T: PartialEq> PartialEq for StructuredOutputResult<T>
Source§fn eq(&self, other: &StructuredOutputResult<T>) -> bool
fn eq(&self, other: &StructuredOutputResult<T>) -> bool
self and other values to be equal, and is used by ==.