Enum ion_schema::result::IonSchemaError
source · [−]pub enum IonSchemaError {
IoError {
source: Error,
},
UnresolvableSchemaError {
description: String,
},
InvalidSchemaError {
description: String,
},
IonError {
source: IonError,
},
}Expand description
Represents the different types of high-level failures that might occur when reading Ion Schema.
Variants
IoError
Fields
source: ErrorIndicates that an io error occurred while loading a schema
UnresolvableSchemaError
Fields
description: StringIndicates failure for schema which has unresolvable imports/types
InvalidSchemaError
Fields
description: StringIndicates failure due to invalid schema syntax
IonError
Fields
source: IonErrorIndicates failure due to ion-rust error defined by IonError
Trait Implementations
sourceimpl Debug for IonSchemaError
impl Debug for IonSchemaError
sourceimpl Display for IonSchemaError
impl Display for IonSchemaError
sourceimpl Error for IonSchemaError
impl Error for IonSchemaError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for IonSchemaError
impl From<Error> for IonSchemaError
Auto Trait Implementations
impl !RefUnwindSafe for IonSchemaError
impl Send for IonSchemaError
impl Sync for IonSchemaError
impl Unpin for IonSchemaError
impl !UnwindSafe for IonSchemaError
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