Skip to main content
pub enum TypeInferenceMode 
    Accuracy,
    Speed,

How the server infers the types of the columns of a table it creates.

Variants

Accuracy

Scan all the data for the best types

Speed

Infer from a sample, quickly

Implementations

Source

pub fn as_str(&self) -> &‘static str

The mode’s name, as the server takes it.

Source

pub fn default_partition_type(&self) -> &‘static str

The default mode’s name.

Trait Implementations

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source

fn fmt(&self, f: &mut Formatter<’_>) -> Result

Formats the value using the given formatter. Read more
Source

fn eq(&self, other: &TypeInferenceMode) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.