pub struct SemanticHintBinding {
pub column: String,
pub kind: SemanticHintKind,
pub checked_values: usize,
pub matched_values: usize,
pub exact: bool,
}Expand description
Per-column evidence of whether a semantic hint actually bound to any value.
A hint expresses user domain knowledge about a column; this records how much
of the column that knowledge matched. matched_values counts the values of
the kind the hint expects (numeric for positive, date-parseable for
temporal, every non-null value for identifier, which coerces the column).
exact distinguishes a full-data count from a sampled one: a hint that
matched nothing (matched_values == 0) is only proven inert when the count
covers every row. A sampled zero is recorded but never treated as an error,
because absence in a sample is not proof of absence in the data.
Fields§
§column: StringThe hinted column this evidence is for.
kind: SemanticHintKindWhich hint list named the column.
checked_values: usizeNon-null values considered.
matched_values: usizeValues that matched the hint’s expected kind.
exact: boolWhether the counts cover every row (true) or a sample (false).
Implementations§
Source§impl SemanticHintBinding
impl SemanticHintBinding
Sourcepub fn is_proven_inert(&self) -> bool
pub fn is_proven_inert(&self) -> bool
Whether this hint is proven inert: it was assessed over the full data
(exact), had values to consider (checked_values > 0), yet matched
none of them.
Trait Implementations§
Source§impl Clone for SemanticHintBinding
impl Clone for SemanticHintBinding
Source§fn clone(&self) -> SemanticHintBinding
fn clone(&self) -> SemanticHintBinding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SemanticHintBinding
impl Debug for SemanticHintBinding
Source§impl<'de> Deserialize<'de> for SemanticHintBinding
impl<'de> Deserialize<'de> for SemanticHintBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for SemanticHintBinding
Source§impl JsonSchema for SemanticHintBinding
impl JsonSchema for SemanticHintBinding
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SemanticHintBinding
impl PartialEq for SemanticHintBinding
Source§impl Serialize for SemanticHintBinding
impl Serialize for SemanticHintBinding
impl StructuralPartialEq for SemanticHintBinding
Auto Trait Implementations§
impl Freeze for SemanticHintBinding
impl RefUnwindSafe for SemanticHintBinding
impl Send for SemanticHintBinding
impl Sync for SemanticHintBinding
impl Unpin for SemanticHintBinding
impl UnsafeUnpin for SemanticHintBinding
impl UnwindSafe for SemanticHintBinding
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.