Enum aws_smithy_json::deserialize::ErrorReason
source · [−]pub enum ErrorReason {
Custom(Cow<'static, str>),
ExpectedLiteral(String),
InvalidEscape(char),
InvalidNumber,
InvalidUtf8,
UnescapeFailed(EscapeError),
UnexpectedControlCharacter(u8),
UnexpectedEos,
UnexpectedToken(char, &'static str),
}
Variants
Custom(Cow<'static, str>)
ExpectedLiteral(String)
InvalidEscape(char)
InvalidNumber
InvalidUtf8
UnescapeFailed(EscapeError)
UnexpectedControlCharacter(u8)
UnexpectedEos
UnexpectedToken(char, &'static str)
Trait Implementations
sourceimpl Debug for ErrorReason
impl Debug for ErrorReason
sourceimpl From<Utf8Error> for ErrorReason
impl From<Utf8Error> for ErrorReason
sourceimpl PartialEq<ErrorReason> for ErrorReason
impl PartialEq<ErrorReason> for ErrorReason
sourcefn eq(&self, other: &ErrorReason) -> bool
fn eq(&self, other: &ErrorReason) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ErrorReason) -> bool
fn ne(&self, other: &ErrorReason) -> bool
This method tests for !=
.
impl Eq for ErrorReason
impl StructuralEq for ErrorReason
impl StructuralPartialEq for ErrorReason
Auto Trait Implementations
impl RefUnwindSafe for ErrorReason
impl Send for ErrorReason
impl Sync for ErrorReason
impl Unpin for ErrorReason
impl UnwindSafe for ErrorReason
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more