#[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§fn clone(&self) -> QueryWarning
fn clone(&self) -> QueryWarning
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more