#[non_exhaustive]pub struct QueryWarning {
pub severity: WarningSeverity,
pub function: String,
pub argument: usize,
pub kind: String,
pub count: u64,
pub sample: Option<String>,
pub hint: String,
pub message: String,
}Expand description
One diagnostic about a query evaluation: a counted class of type errors, or
a hint. Returned by eval_query_with_warnings.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.severity: WarningSeverity§function: StringThe SPARQL function name, upper-case ("CONTAINS"), or the operator’s
spelling for an operator: + - * /, = != < <= > >=,
IN.
argument: usize1-based argument position the problem is about (0 = not argument-specific). For an operator, 1 is the left operand and 2 the right one.
kind: StringWhat the argument was: iri, blank-node, quoted-triple, numeric,
typed-literal, string, language-tagged, invalid-number,
language-mismatch, unbound, invalid-regex, not-a-datetime,
division-by-zero (argument 2 of /), or case-sensitive for the
hint.
count: u64How many evaluations raised this error (an evaluation is one row reaching the expression; LIMIT / ASK stop early, so this is not a data count).
sample: Option<String>The first offending value, truncated to 80 characters (plus …).
hint: StringA short, actionable suggestion.
message: StringThe whole warning as one plain-language sentence.
Trait Implementations§
Source§impl Clone for QueryWarning
impl Clone for QueryWarning
Source§impl Debug for QueryWarning
impl Debug for QueryWarning
impl Eq for QueryWarning
Source§impl PartialEq for QueryWarning
impl PartialEq for QueryWarning
impl StructuralPartialEq for QueryWarning
Auto Trait Implementations§
impl Freeze for QueryWarning
impl RefUnwindSafe for QueryWarning
impl Send for QueryWarning
impl Sync for QueryWarning
impl Unpin for QueryWarning
impl UnsafeUnpin for QueryWarning
impl UnwindSafe for QueryWarning
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more