Enum rosetta_build::error::ParseError [−][src]
pub enum ParseError {
InvalidRoot,
InvalidValue {
key: String,
},
InvalidType {
key: String,
expected: &'static str,
},
InvalidParameters {
key: String,
missing: Vec<String>,
unknown: Vec<String>,
},
InvalidLanguageId {
value: String,
},
}
Expand description
Error type returned when a parsing error occurs.
Variants
File root is not a JSON object
Invalid key type (raw parsing)
Fields of InvalidValue
key: String
Invalid key type (doesn’t match previous parsed keys)
Invalid parameters supplied to interpolated key (missing and/or unknown parameters)
Invalid language identifier (not ISO 693-1 compliant)
Fields of InvalidLanguageId
value: String
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnwindSafe for ParseError
Blanket Implementations
Mutably borrows from an owned value. Read more