pub struct ModelInference { /* private fields */ }Expand description
Infers explicit generation rules from a dump profile through the registered
heuristics. Build one with ModelInference::standard (the built-in
registry + default options) or ModelInference::new.
Implementations§
Source§impl ModelInference
impl ModelInference
Sourcepub fn standard() -> Self
pub fn standard() -> Self
A ModelInference over the standard generator registry and default
options.
Sourcepub fn new(registry: ExtensionRegistry, options: InferenceOptions) -> Self
pub fn new(registry: ExtensionRegistry, options: InferenceOptions) -> Self
A ModelInference over a caller-supplied registry and options.
Sourcepub fn infer(
&self,
schema: &PortableSchema,
profile: &DumpProfile,
) -> Result<InferenceResult, InferenceError>
pub fn infer( &self, schema: &PortableSchema, profile: &DumpProfile, ) -> Result<InferenceResult, InferenceError>
Infer an explicit, self-contained model from a schema and its profile.
The schema supplies column types, keys, and relationships; the
profile supplies the observed value evidence. Tables in the profile
that are absent from the schema are skipped with a warning.
Auto Trait Implementations§
impl !RefUnwindSafe for ModelInference
impl !UnwindSafe for ModelInference
impl Freeze for ModelInference
impl Send for ModelInference
impl Sync for ModelInference
impl Unpin for ModelInference
impl UnsafeUnpin for ModelInference
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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