pub enum Affinity {
Integer,
Text,
Blob,
Real,
Numeric,
}Expand description
Column type affinity as defined by the SQLite file format (§3.1, “Type
Affinity”). Derived from a column’s declared type by the documented
substring rules, in priority order. A column with no declared type is
Blob (SQLite’s “BLOB or no datatype” affinity).
Variants§
Integer
Declared type contains “INT” → INTEGER affinity.
Text
Declared type contains “CHAR”, “CLOB”, or “TEXT” → TEXT affinity.
Blob
Declared type contains “BLOB”, or no declared type → BLOB affinity.
Real
Declared type contains “REAL”, “FLOA”, or “DOUB” → REAL affinity.
Numeric
Anything else → NUMERIC affinity.
Trait Implementations§
impl Copy for Affinity
impl Eq for Affinity
impl StructuralPartialEq for Affinity
Auto Trait Implementations§
impl Freeze for Affinity
impl RefUnwindSafe for Affinity
impl Send for Affinity
impl Sync for Affinity
impl Unpin for Affinity
impl UnsafeUnpin for Affinity
impl UnwindSafe for Affinity
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