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

Fields

attr: String

InvalidValue

Fields

value: Value

ForbiddenType

Fields

typ: Type

UnrecognizedAttribute

Fields

attr: String

UnknownType

Fields

typ: String

DuplicatePointer

Fields

ptr: String

DuplicateId

Fields

id: String

DuplicateName

Fields

name: String

DuplicateAttribute

Fields

attr: String

UndefinedId

Fields

id: String

UnresolvedPointers

Fields

target: String
sources: HashSet<String>

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.