pub struct ValidationErrorWire {
pub stage: String,
pub message: String,
pub path: Option<String>,
}Expand description
Wire-format twin of [crate::validation::ValidationError]. Owned +
serializable; the stage discriminator is a string ("parse",
"schema", "custom:<rule>") so SDK consumers don’t need to round-trip
through the internal enum.
Produced by [crate::validation::ValidationError::to_wire]. The internal
SchemaCompile stage is intentionally not representable here — those
errors short-circuit to crate::value::Value::FatalError before any
EngineEvent::Suspended would be emitted (they’re engine bugs, not
model bugs; author can’t fix them by reviewing a payload). See the
authoritative decision in
docs/superpowers/plans/2026-04-18-epa-feature-tracker.md
(“Wave-1 M1 ship notes + cross-cutting decisions (2026-04-18, round 3)”).
Fields§
§stage: String§message: String§path: Option<String>Trait Implementations§
Source§impl Clone for ValidationErrorWire
impl Clone for ValidationErrorWire
Source§fn clone(&self) -> ValidationErrorWire
fn clone(&self) -> ValidationErrorWire
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ValidationErrorWire
impl Debug for ValidationErrorWire
Source§impl<'de> Deserialize<'de> for ValidationErrorWire
impl<'de> Deserialize<'de> for ValidationErrorWire
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidationErrorWire
impl PartialEq for ValidationErrorWire
Source§fn eq(&self, other: &ValidationErrorWire) -> bool
fn eq(&self, other: &ValidationErrorWire) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValidationErrorWire
impl Serialize for ValidationErrorWire
impl Eq for ValidationErrorWire
impl StructuralPartialEq for ValidationErrorWire
Auto Trait Implementations§
impl Freeze for ValidationErrorWire
impl RefUnwindSafe for ValidationErrorWire
impl Send for ValidationErrorWire
impl Sync for ValidationErrorWire
impl Unpin for ValidationErrorWire
impl UnsafeUnpin for ValidationErrorWire
impl UnwindSafe for ValidationErrorWire
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more