pub enum DecodeErrorPath {
Current,
Constructor(String),
Positional(String, usize, Box<DecodeErrorPath>),
Keyword(String, String, Box<DecodeErrorPath>),
}
Expand description
Specifies where in an expression an error occurred.
Variants§
Current
Error occurred at the current position in the object.
Constructor(String)
Error occurred at the current position in the object, within a constructor with the specified name.
Positional(String, usize, Box<DecodeErrorPath>)
Error occurred under a positional argument.
Keyword(String, String, Box<DecodeErrorPath>)
Error occurred under a keyword argument.
Trait Implementations§
Source§impl Clone for DecodeErrorPath
impl Clone for DecodeErrorPath
Source§fn clone(&self) -> DecodeErrorPath
fn clone(&self) -> DecodeErrorPath
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 moreAuto Trait Implementations§
impl Freeze for DecodeErrorPath
impl RefUnwindSafe for DecodeErrorPath
impl Send for DecodeErrorPath
impl Sync for DecodeErrorPath
impl Unpin for DecodeErrorPath
impl UnwindSafe for DecodeErrorPath
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