pub(super) struct ErrorUnknownField {
name: String,
did_you_mean: Option<(f64, String)>,
}
Expand description
An error for an unknown field, with a possible “did-you-mean” suggestion to get the user back on the right track.
Fields§
§name: String
§did_you_mean: Option<(f64, String)>
Implementations§
Trait Implementations§
source§impl Clone for ErrorUnknownField
impl Clone for ErrorUnknownField
source§fn clone(&self) -> ErrorUnknownField
fn clone(&self) -> ErrorUnknownField
Returns a copy 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 ErrorUnknownField
impl Debug for ErrorUnknownField
source§impl Display for ErrorUnknownField
impl Display for ErrorUnknownField
source§impl<'a> From<&'a str> for ErrorUnknownField
impl<'a> From<&'a str> for ErrorUnknownField
source§impl From<ErrorUnknownField> for ErrorKind
impl From<ErrorUnknownField> for ErrorKind
source§fn from(err: ErrorUnknownField) -> Self
fn from(err: ErrorUnknownField) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorUnknownField
impl RefUnwindSafe for ErrorUnknownField
impl Send for ErrorUnknownField
impl Sync for ErrorUnknownField
impl Unpin for ErrorUnknownField
impl UnwindSafe for ErrorUnknownField
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)