#[non_exhaustive]pub enum ProjectLoadError {
TooLarge {
bytes: usize,
maximum: usize,
},
Json(Error),
InvalidProject(ModelError),
}Expand description
Failure while decoding a serialized project document.
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.
TooLarge
The JSON input exceeded the parser byte budget.
Json(Error)
JSON syntax or shape was invalid.
InvalidProject(ModelError)
The decoded document violated a model invariant.
Trait Implementations§
Source§impl Debug for ProjectLoadError
impl Debug for ProjectLoadError
Source§impl Display for ProjectLoadError
impl Display for ProjectLoadError
Source§impl Error for ProjectLoadError
impl Error for ProjectLoadError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for ProjectLoadError
impl !UnwindSafe for ProjectLoadError
impl Freeze for ProjectLoadError
impl Send for ProjectLoadError
impl Sync for ProjectLoadError
impl Unpin for ProjectLoadError
impl UnsafeUnpin for ProjectLoadError
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