pub struct ValidationErrorWire {
pub stage: String,
pub message: String,
pub path: Option<String>,
}Expand description
Wire-format twin of [akribes_types::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.
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
impl Eq for ValidationErrorWire
Source§impl From<ValidationErrorWire> for ValidationErrorWire
impl From<ValidationErrorWire> for ValidationErrorWire
Source§fn from(v: ValidationErrorWire) -> Self
fn from(v: ValidationErrorWire) -> Self
Converts to this type from the input type.
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.