#[non_exhaustive]pub enum SelectionError {
Fragment(FragmentError),
Directive(DirectiveError),
}Expand description
Failure to reduce a document’s selection set to the fields it requests.
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.
Fragment(FragmentError)
A fragment spread could not be expanded.
Directive(DirectiveError)
A @skip/@include condition could not be evaluated.
Trait Implementations§
Source§impl Debug for SelectionError
impl Debug for SelectionError
Source§impl Display for SelectionError
impl Display for SelectionError
Source§impl Error for SelectionError
impl Error for SelectionError
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 From<DirectiveError> for SelectionError
impl From<DirectiveError> for SelectionError
Source§fn from(source: DirectiveError) -> Self
fn from(source: DirectiveError) -> Self
Converts to this type from the input type.
Source§impl From<FragmentError> for SelectionError
impl From<FragmentError> for SelectionError
Source§fn from(source: FragmentError) -> Self
fn from(source: FragmentError) -> Self
Converts to this type from the input type.
Source§impl From<SelectionError> for FraiseQLError
impl From<SelectionError> for FraiseQLError
Source§fn from(err: SelectionError) -> Self
fn from(err: SelectionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SelectionError
impl RefUnwindSafe for SelectionError
impl Send for SelectionError
impl Sync for SelectionError
impl Unpin for SelectionError
impl UnsafeUnpin for SelectionError
impl UnwindSafe for SelectionError
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