pub enum ManifestDocumentError {
Manifest(ManifestError),
Json(Error),
RootNotObject,
DependenciesNotObject,
}Expand description
An error parsing or editing a module.json document.
Variants§
Manifest(ManifestError)
The module.json bytes failed strict manifest validation.
Json(Error)
The module.json bytes failed JSON parsing or serialization.
RootNotObject
The root JSON value was not an object.
DependenciesNotObject
The dependencies value was present but not an object.
Trait Implementations§
Source§impl Debug for ManifestDocumentError
impl Debug for ManifestDocumentError
Source§impl Display for ManifestDocumentError
impl Display for ManifestDocumentError
Source§impl Error for ManifestDocumentError
impl Error for ManifestDocumentError
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()
Source§impl From<Error> for ManifestDocumentError
impl From<Error> for ManifestDocumentError
Source§impl From<ManifestError> for ManifestDocumentError
impl From<ManifestError> for ManifestDocumentError
Source§fn from(source: ManifestError) -> Self
fn from(source: ManifestError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ManifestDocumentError
impl !UnwindSafe for ManifestDocumentError
impl Freeze for ManifestDocumentError
impl Send for ManifestDocumentError
impl Sync for ManifestDocumentError
impl Unpin for ManifestDocumentError
impl UnsafeUnpin for ManifestDocumentError
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