pub enum InferredType {
Null,
Boolean,
Integer,
Float,
Date,
Timestamp,
Text,
}Expand description
A column’s inferred type.
Variants§
Null
Every cell is null.
Boolean
true or false.
Integer
Whole numbers that fit in an i64.
Float
Numbers.
Date
YYYY-MM-DD dates.
Timestamp
Dates with a time.
Text
Anything else.
Implementations§
Source§impl InferredType
impl InferredType
Sourcepub fn data_type(self) -> DataType
pub fn data_type(self) -> DataType
The schema type: null is DataType::Unknown, text is
DataType::String.
Trait Implementations§
Source§impl Clone for InferredType
impl Clone for InferredType
impl Copy for InferredType
Source§impl Debug for InferredType
impl Debug for InferredType
Source§impl Display for InferredType
impl Display for InferredType
impl Eq for InferredType
Source§impl Hash for InferredType
impl Hash for InferredType
Source§impl PartialEq for InferredType
impl PartialEq for InferredType
impl StructuralPartialEq for InferredType
Auto Trait Implementations§
impl Freeze for InferredType
impl RefUnwindSafe for InferredType
impl Send for InferredType
impl Sync for InferredType
impl Unpin for InferredType
impl UnsafeUnpin for InferredType
impl UnwindSafe for InferredType
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more