pub enum StrictColumnType {
Integer,
Real,
Text,
Blob,
Any,
}Expand description
Column types valid in STRICT tables.
STRICT tables enforce that every non-NULL value stored in a column matches the declared type. See https://www.sqlite.org/stricttables.html.
Variants§
Integer
Only INTEGER storage class (and NULL).
Real
REAL storage class; integers are implicitly converted to REAL (and NULL).
Text
Only TEXT storage class (and NULL).
Blob
Only BLOB storage class (and NULL).
Any
Any storage class accepted without coercion.
Implementations§
Source§impl StrictColumnType
impl StrictColumnType
Sourcepub fn from_type_name(name: &str) -> Option<Self>
pub fn from_type_name(name: &str) -> Option<Self>
Parse a STRICT column type from a type name string.
Returns None if the type name is not a valid STRICT type.
Valid STRICT types: INT, INTEGER, REAL, TEXT, BLOB, ANY.
Trait Implementations§
Source§impl Clone for StrictColumnType
impl Clone for StrictColumnType
Source§fn clone(&self) -> StrictColumnType
fn clone(&self) -> StrictColumnType
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 StrictColumnType
impl Debug for StrictColumnType
Source§impl Hash for StrictColumnType
impl Hash for StrictColumnType
Source§impl PartialEq for StrictColumnType
impl PartialEq for StrictColumnType
impl Copy for StrictColumnType
impl Eq for StrictColumnType
impl StructuralPartialEq for StrictColumnType
Auto Trait Implementations§
impl Freeze for StrictColumnType
impl RefUnwindSafe for StrictColumnType
impl Send for StrictColumnType
impl Sync for StrictColumnType
impl Unpin for StrictColumnType
impl UnsafeUnpin for StrictColumnType
impl UnwindSafe for StrictColumnType
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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).