pub struct ValidationErrorReport {
pub schema_id: OutputSchemaId,
pub schema_version: SchemaVersion,
pub schema_fingerprint: ContentHash,
pub validation_attempt_id: ValidationAttemptId,
pub source_attempt_id: AttemptId,
pub candidate_content_ref: ContentRef,
pub errors: Vec<ValidationErrorSummary>,
pub redacted_error_summary: String,
pub schema_rejected: bool,
pub retry_exhausted: bool,
pub privacy: PrivacyClass,
pub record: ValidationRecord,
}Expand description
Holds validation error report application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Fields§
§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.
validation_attempt_id: ValidationAttemptIdStable validation attempt id used for typed lineage, lookup, or dedupe.
source_attempt_id: AttemptIdStable source attempt id used for typed lineage, lookup, or dedupe.
candidate_content_ref: ContentRefContent reference for the candidate value being validated.
errors: Vec<ValidationErrorSummary>Bounded errors included in this record. Limits and truncation are represented by companion metadata when applicable.
redacted_error_summary: StringRedacted summary for display, logs, events, or telemetry. It should describe the value without exposing raw private content.
schema_rejected: boolWhether schema rejected is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
retry_exhausted: boolWhether retry exhausted is enabled. Policy, validation, or routing code uses this flag to choose the explicit behavior.
privacy: PrivacyClassPrivacy class used for projection, telemetry, and raw-content access decisions.
record: ValidationRecordRecord used by this record or request.
Implementations§
Source§impl ValidationErrorReport
impl ValidationErrorReport
Sourcepub fn as_agent_error(&self) -> AgentError
pub fn as_agent_error(&self) -> AgentError
Returns this value as agent error. The accessor is side-effect free and keeps ownership with the caller.
Trait Implementations§
Source§impl Clone for ValidationErrorReport
impl Clone for ValidationErrorReport
Source§fn clone(&self) -> ValidationErrorReport
fn clone(&self) -> ValidationErrorReport
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 ValidationErrorReport
impl Debug for ValidationErrorReport
Source§impl<'de> Deserialize<'de> for ValidationErrorReport
impl<'de> Deserialize<'de> for ValidationErrorReport
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 ValidationErrorReport
Source§impl PartialEq for ValidationErrorReport
impl PartialEq for ValidationErrorReport
Source§fn eq(&self, other: &ValidationErrorReport) -> bool
fn eq(&self, other: &ValidationErrorReport) -> bool
self and other values to be equal, and is used by ==.