Enum json_feed_model::Error
source · [−]#[non_exhaustive]
pub enum Error {
UnexpectedType,
SerdeJson(Error),
}
Expand description
All of the possible crate errors.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnexpectedType
If the JSON value is an unexpected type.
For instance, if a JSON string is expected but the actual value is a JSON object, then
UnexpectedType
would be returned as an error.
SerdeJson(Error)
If there is an error decoding the JSON.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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