#[non_exhaustive]pub enum SchemaLookupError<'coord, 'schema> {
MissingType(&'coord NamedType),
MissingAttribute(&'coord Name),
InvalidArgumentAttribute(&'coord Name),
MissingArgument(&'coord Name),
InvalidType(&'schema ExtendedType),
}
Expand description
Errors that can occur while looking up a schema coordinate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MissingType(&'coord NamedType)
The requested type does not exist in the schema.
MissingAttribute(&'coord Name)
The requested field or enum value does not exist on its type.
InvalidArgumentAttribute(&'coord Name)
The requested argument can not be looked up because its type does not support arguments.
MissingArgument(&'coord Name)
The requested argument does not exist on its field or directive.
InvalidType(&'schema ExtendedType)
The requested field or enum value can not be looked up because its type does not support fields.
Trait Implementations§
source§impl<'coord, 'schema> Debug for SchemaLookupError<'coord, 'schema>
impl<'coord, 'schema> Debug for SchemaLookupError<'coord, 'schema>
source§impl<'coord, 'schema> Display for SchemaLookupError<'coord, 'schema>
impl<'coord, 'schema> Display for SchemaLookupError<'coord, 'schema>
source§impl<'coord, 'schema> Error for SchemaLookupError<'coord, 'schema>
impl<'coord, 'schema> Error for SchemaLookupError<'coord, 'schema>
1.30.0 · source§fn 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 · 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<'coord, 'schema> Freeze for SchemaLookupError<'coord, 'schema>
impl<'coord, 'schema> RefUnwindSafe for SchemaLookupError<'coord, 'schema>
impl<'coord, 'schema> Send for SchemaLookupError<'coord, 'schema>
impl<'coord, 'schema> Sync for SchemaLookupError<'coord, 'schema>
impl<'coord, 'schema> Unpin for SchemaLookupError<'coord, 'schema>
impl<'coord, 'schema> UnwindSafe for SchemaLookupError<'coord, 'schema>
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