pub enum ColumnType {
Uuid,
Varchar,
VarcharN(u32),
Boolean,
DateTime,
Json,
Int,
SmallInt,
Text,
}Expand description
Abstract column type – each dialect maps this to a concrete SQL type.
Variants§
Uuid
UUID type. Postgres: UUID.
Varchar
Variable-length string. Postgres: VARCHAR.
VarcharN(u32)
Variable-length string with max length. Postgres: VARCHAR(n).
Boolean
Boolean. Postgres: BOOLEAN.
DateTime
Timestamp with timezone. Postgres: TIMESTAMPTZ.
Json
JSON binary. Postgres: JSONB.
Int
32-bit integer. Postgres: INT.
SmallInt
16-bit integer. Postgres: SMALLINT.
Text
Text (unbounded). Postgres: TEXT.
Trait Implementations§
Source§impl Clone for ColumnType
impl Clone for ColumnType
Source§fn clone(&self) -> ColumnType
fn clone(&self) -> ColumnType
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 ColumnType
impl Debug for ColumnType
Source§impl Hash for ColumnType
impl Hash for ColumnType
Source§impl PartialEq for ColumnType
impl PartialEq for ColumnType
impl Eq for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnsafeUnpin for ColumnType
impl UnwindSafe for ColumnType
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<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.