pub enum InferredDataType {
Integer {
nullable: bool,
},
Float {
nullable: bool,
},
Decimal {
precision: u8,
scale: u8,
},
Boolean {
true_values: Vec<String>,
false_values: Vec<String>,
},
Date {
format: String,
},
DateTime {
format: String,
},
Time {
format: String,
},
Categorical {
cardinality: usize,
},
Text,
Mixed {
types: HashMap<String, f64>,
},
}Expand description
Inferred data type with specific metadata
Variants§
Integer
Integer numbers
Float
Floating point numbers
Decimal
Decimal numbers with precision and scale
Boolean
Boolean values with detected representations
Date
Date values with detected format
DateTime
DateTime values with detected format
Time
Time values with detected format
Categorical
Categorical data with known cardinality
Text
Free text data
Mixed
Mixed types with confidence scores for each type
Implementations§
Trait Implementations§
Source§impl Clone for InferredDataType
impl Clone for InferredDataType
Source§fn clone(&self) -> InferredDataType
fn clone(&self) -> InferredDataType
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 InferredDataType
impl Debug for InferredDataType
Source§impl<'de> Deserialize<'de> for InferredDataType
impl<'de> Deserialize<'de> for InferredDataType
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InferredDataType
impl PartialEq for InferredDataType
Source§impl Serialize for InferredDataType
impl Serialize for InferredDataType
impl StructuralPartialEq for InferredDataType
Auto Trait Implementations§
impl Freeze for InferredDataType
impl RefUnwindSafe for InferredDataType
impl Send for InferredDataType
impl Sync for InferredDataType
impl Unpin for InferredDataType
impl UnwindSafe for InferredDataType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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