pub struct InferenceResult {
pub model: SyntheticModel,
pub decisions: Vec<Decision>,
pub warnings: Vec<Diagnostic>,
/* private fields */
}Expand description
The output of ModelInference::infer: an explicit, self-contained model,
the per-column decisions, and any warnings raised while inferring.
Fields§
§model: SyntheticModel§decisions: Vec<Decision>§warnings: Vec<Diagnostic>Implementations§
Source§impl InferenceResult
impl InferenceResult
Sourcepub fn decision(&self, key: &str) -> Option<&Decision>
pub fn decision(&self, key: &str) -> Option<&Decision>
The decision recorded for "table.column", if any.
Sourcepub fn column_rule(&self, table: &str, column: &str) -> Option<&ColumnRule>
pub fn column_rule(&self, table: &str, column: &str) -> Option<&ColumnRule>
The winning column rule for table/column, if the model has one.
Sourcepub fn source_literals(&self, key: &str) -> &[String]
pub fn source_literals(&self, key: &str) -> &[String]
The literal source values persisted by "table.column"’s winning rule
(empty when the rule embeds none — e.g. a synthetic credential rule).
Trait Implementations§
Source§impl Clone for InferenceResult
impl Clone for InferenceResult
Source§fn clone(&self) -> InferenceResult
fn clone(&self) -> InferenceResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InferenceResult
impl RefUnwindSafe for InferenceResult
impl Send for InferenceResult
impl Sync for InferenceResult
impl Unpin for InferenceResult
impl UnsafeUnpin for InferenceResult
impl UnwindSafe for InferenceResult
Blanket Implementations§
impl<T> Allocation for T
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
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>
Converts
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>
Converts
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