#[non_exhaustive]pub struct QueryFailure {
pub query: String,
pub reason: String,
pub path: Option<PathBuf>,
pub line: Option<usize>,
}Expand description
A query that cannot be generated.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.query: StringThe query name, or line N when no valid name was annotated.
reason: String§path: Option<PathBuf>The query file, when the failure is located in it.
line: Option<usize>1-based line of the query’s -- name: annotation (or of the
offending line when there is no valid annotation), when known.
Trait Implementations§
Source§impl Clone for QueryFailure
impl Clone for QueryFailure
Source§impl Debug for QueryFailure
impl Debug for QueryFailure
Source§impl Display for QueryFailure
impl Display for QueryFailure
impl Eq for QueryFailure
Source§impl PartialEq for QueryFailure
impl PartialEq for QueryFailure
impl StructuralPartialEq for QueryFailure
Auto Trait Implementations§
impl Freeze for QueryFailure
impl RefUnwindSafe for QueryFailure
impl Send for QueryFailure
impl Sync for QueryFailure
impl Unpin for QueryFailure
impl UnsafeUnpin for QueryFailure
impl UnwindSafe for QueryFailure
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