pub enum SchemaIdlError {
InvalidUtf8,
Json(String),
UnsupportedIdlVersion(String),
InvalidSchema(String),
}Expand description
Error returned when schema IDL JSON cannot be decoded or validated.
Variants§
InvalidUtf8
Input bytes were not valid UTF-8.
Json(String)
JSON parsing failed.
UnsupportedIdlVersion(String)
The IDL document version is not supported by this crate.
InvalidSchema(String)
The IDL document is syntactically valid but semantically invalid.
Trait Implementations§
Source§impl Clone for SchemaIdlError
impl Clone for SchemaIdlError
Source§fn clone(&self) -> SchemaIdlError
fn clone(&self) -> SchemaIdlError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaIdlError
impl Debug for SchemaIdlError
Source§impl Display for SchemaIdlError
impl Display for SchemaIdlError
Source§impl Error for SchemaIdlError
impl Error for SchemaIdlError
1.30.0 · 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 PartialEq for SchemaIdlError
impl PartialEq for SchemaIdlError
impl Eq for SchemaIdlError
impl StructuralPartialEq for SchemaIdlError
Auto Trait Implementations§
impl Freeze for SchemaIdlError
impl RefUnwindSafe for SchemaIdlError
impl Send for SchemaIdlError
impl Sync for SchemaIdlError
impl Unpin for SchemaIdlError
impl UnsafeUnpin for SchemaIdlError
impl UnwindSafe for SchemaIdlError
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