pub struct DataSample { /* private fields */ }Expand description
Sample data for schema learning.
Implementations§
Source§impl DataSample
impl DataSample
Sourcepub fn field_names(&self) -> HashSet<String>
pub fn field_names(&self) -> HashSet<String>
Get all unique field names across records.
Sourcepub fn field_values(&self, field: &str) -> Vec<&Value>
pub fn field_values(&self, field: &str) -> Vec<&Value>
Get values for a specific field.
Trait Implementations§
Source§impl Clone for DataSample
impl Clone for DataSample
Source§fn clone(&self) -> DataSample
fn clone(&self) -> DataSample
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 moreAuto Trait Implementations§
impl Freeze for DataSample
impl RefUnwindSafe for DataSample
impl Send for DataSample
impl Sync for DataSample
impl Unpin for DataSample
impl UnwindSafe for DataSample
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