pub enum SpecError {
IncompatibleVersion {
found: SchemaVersion,
expected: SchemaVersion,
},
Validation {
message: String,
},
MissingField {
field: String,
},
DuplicateId {
id: String,
},
InvalidContractId {
id: String,
},
Parse(String),
TomlSerialize(Error),
TomlDeserialize(Error),
Json(Error),
Io(Error),
}Expand description
Errors that can occur when working with lexicon spec types.
Variants§
IncompatibleVersion
Validation
MissingField
DuplicateId
InvalidContractId
Parse(String)
TomlSerialize(Error)
TomlDeserialize(Error)
Json(Error)
Io(Error)
Trait Implementations§
Source§impl Error for SpecError
impl Error for SpecError
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 Freeze for SpecError
impl !RefUnwindSafe for SpecError
impl Send for SpecError
impl Sync for SpecError
impl Unpin for SpecError
impl UnsafeUnpin for SpecError
impl !UnwindSafe for SpecError
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