pub enum SchemaExtractError {
UnhandledType {
type_desc: String,
},
PointerWithoutTypeParams {
shape_desc: String,
},
UnresolvedTempId {
temp_id: CycleSchemaIndex,
},
MissingAssignment {
context: String,
},
}Expand description
Errors that can occur during schema extraction.
Variants§
UnhandledType
Encountered a type that schema extraction doesn’t know how to handle.
PointerWithoutTypeParams
A pointer type had no type_params to follow.
UnresolvedTempId
A temporary ID was not resolved during finalization.
Fields
§
temp_id: CycleSchemaIndexMissingAssignment
A DeclId was expected in the assigned map but wasn’t found.
Trait Implementations§
Source§impl Debug for SchemaExtractError
impl Debug for SchemaExtractError
Source§impl Display for SchemaExtractError
impl Display for SchemaExtractError
Source§impl Error for SchemaExtractError
impl Error for SchemaExtractError
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()
Auto Trait Implementations§
impl Freeze for SchemaExtractError
impl RefUnwindSafe for SchemaExtractError
impl Send for SchemaExtractError
impl Sync for SchemaExtractError
impl Unpin for SchemaExtractError
impl UnsafeUnpin for SchemaExtractError
impl UnwindSafe for SchemaExtractError
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