pub struct LocatedError {
pub error: ValidationError,
pub source: Option<SourceLocation>,
}Expand description
A validation error with optional source location.
Fields§
§error: ValidationError§source: Option<SourceLocation>Implementations§
Source§impl LocatedError
impl LocatedError
pub fn new(error: ValidationError) -> Self
pub fn with_source( error: ValidationError, source: Option<SourceLocation>, ) -> Self
Trait Implementations§
Source§impl Clone for LocatedError
impl Clone for LocatedError
Source§fn clone(&self) -> LocatedError
fn clone(&self) -> LocatedError
Returns a duplicate of the value. Read more
1.0.0 · 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 LocatedError
impl Debug for LocatedError
Auto Trait Implementations§
impl Freeze for LocatedError
impl RefUnwindSafe for LocatedError
impl Send for LocatedError
impl Sync for LocatedError
impl Unpin for LocatedError
impl UnsafeUnpin for LocatedError
impl UnwindSafe for LocatedError
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