pub struct SchemaError<'schema> {
pub kind: SchemaErrorKind<'schema>,
pub state: Breadcrumb<'schema>,
}Expand description
A wrapper type around SchemaErrorKind containing path information about where the error occurred.
Fields§
§kind: SchemaErrorKind<'schema>§state: Breadcrumb<'schema>Implementations§
Source§impl<'a> SchemaError<'a>
impl<'a> SchemaError<'a>
pub fn add_path_name( path: &'a str, ) -> impl Fn(SchemaError<'a>) -> SchemaError<'a>
pub fn add_path_index( index: usize, ) -> impl Fn(SchemaError<'a>) -> SchemaError<'a>
Trait Implementations§
Source§impl<'schema> Debug for SchemaError<'schema>
impl<'schema> Debug for SchemaError<'schema>
Source§impl<'a> Display for SchemaError<'a>
impl<'a> Display for SchemaError<'a>
Source§impl<'a> From<SchemaErrorKind<'a>> for SchemaError<'a>
impl<'a> From<SchemaErrorKind<'a>> for SchemaError<'a>
Source§fn from(kind: SchemaErrorKind<'a>) -> SchemaError<'a>
fn from(kind: SchemaErrorKind<'a>) -> SchemaError<'a>
Converts to this type from the input type.
Source§impl<'a> From<Vec<SchemaError<'a>>> for SchemaError<'a>
impl<'a> From<Vec<SchemaError<'a>>> for SchemaError<'a>
Source§fn from(errors: Vec<SchemaError<'a>>) -> Self
fn from(errors: Vec<SchemaError<'a>>) -> Self
Converts to this type from the input type.
Source§impl<'schema> PartialEq for SchemaError<'schema>
impl<'schema> PartialEq for SchemaError<'schema>
impl<'schema> Eq for SchemaError<'schema>
impl<'schema> StructuralPartialEq for SchemaError<'schema>
Auto Trait Implementations§
impl<'schema> Freeze for SchemaError<'schema>
impl<'schema> RefUnwindSafe for SchemaError<'schema>
impl<'schema> Send for SchemaError<'schema>
impl<'schema> Sync for SchemaError<'schema>
impl<'schema> Unpin for SchemaError<'schema>
impl<'schema> UnwindSafe for SchemaError<'schema>
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