pub struct SchemaLearner { /* private fields */ }Implementations§
Source§impl SchemaLearner
impl SchemaLearner
pub fn new() -> Self
pub fn learn(&mut self, target: impl Into<String>, insight: &InsightKind)
pub fn schema_for(&self, target: &str) -> Option<&LearnedSchema>
pub fn apply_to_json(&self, target: &str, original_json: &str) -> Option<String>
Trait Implementations§
Source§impl Clone for SchemaLearner
impl Clone for SchemaLearner
Source§fn clone(&self) -> SchemaLearner
fn clone(&self) -> SchemaLearner
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaLearner
impl Debug for SchemaLearner
Source§impl Default for SchemaLearner
impl Default for SchemaLearner
Source§fn default() -> SchemaLearner
fn default() -> SchemaLearner
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaLearner
impl RefUnwindSafe for SchemaLearner
impl Send for SchemaLearner
impl Sync for SchemaLearner
impl Unpin for SchemaLearner
impl UnsafeUnpin for SchemaLearner
impl UnwindSafe for SchemaLearner
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