Enum json_model::Error
source · pub enum Error {
Show 13 variants
ParseError(Error),
InvalidRoot,
MissingAttribute {
path: DocumentPath,
attr: String,
},
InvalidValue {
path: DocumentPath,
value: Value,
},
ForbiddenType {
path: DocumentPath,
typ: Type,
},
UnrecognizedAttribute {
path: DocumentPath,
attr: String,
},
UnknownType {
path: DocumentPath,
typ: String,
},
DuplicatePointer {
path: DocumentPath,
ptr: String,
},
DuplicateId {
path: DocumentPath,
id: String,
},
DuplicateName {
path: DocumentPath,
name: String,
},
DuplicateAttribute {
path: DocumentPath,
attr: String,
},
UndefinedId {
path: DocumentPath,
id: String,
},
UnresolvedPointers {
target: String,
sources: HashSet<String>,
},
}
Variants
ParseError(Error)
InvalidRoot
MissingAttribute
InvalidValue
ForbiddenType
UnrecognizedAttribute
UnknownType
DuplicatePointer
DuplicateId
DuplicateName
DuplicateAttribute
UndefinedId
UnresolvedPointers
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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