Struct sea_query::table::ColumnDef [−][src]
pub struct ColumnDef { /* fields omitted */ }
Expand description
Specification of a table column
Implementations
impl ColumnDef
[src]
impl ColumnDef
[src]pub fn auto_increment(self) -> Self
[src]
pub fn auto_increment(self) -> Self
[src]Set column auto increment
pub fn unique_key(self) -> Self
[src]
pub fn unique_key(self) -> Self
[src]Set column unique constraint
pub fn primary_key(self) -> Self
[src]
pub fn primary_key(self) -> Self
[src]Set column as primary key
pub fn string_len(self, length: u32) -> Self
[src]
pub fn string_len(self, length: u32) -> Self
[src]Set column type as string with custom length
pub fn tiny_integer_len(self, length: u32) -> Self
[src]
pub fn tiny_integer_len(self, length: u32) -> Self
[src]Set column type as tiny_integer with custom length
pub fn tiny_integer(self) -> Self
[src]
pub fn tiny_integer(self) -> Self
[src]Set column type as tiny_integer
pub fn small_integer_len(self, length: u32) -> Self
[src]
pub fn small_integer_len(self, length: u32) -> Self
[src]Set column type as small_integer with custom length
pub fn small_integer(self) -> Self
[src]
pub fn small_integer(self) -> Self
[src]Set column type as small_integer
pub fn integer_len(self, length: u32) -> Self
[src]
pub fn integer_len(self, length: u32) -> Self
[src]Set column type as integer with custom length
pub fn big_integer_len(self, length: u32) -> Self
[src]
pub fn big_integer_len(self, length: u32) -> Self
[src]Set column type as big_integer with custom length
pub fn big_integer(self) -> Self
[src]
pub fn big_integer(self) -> Self
[src]Set column type as big_integer
pub fn double_len(self, precision: u32) -> Self
[src]
pub fn double_len(self, precision: u32) -> Self
[src]Set column type as double with custom precision
pub fn decimal_len(self, precision: u32, scale: u32) -> Self
[src]
pub fn decimal_len(self, precision: u32, scale: u32) -> Self
[src]Set column type as decimal with custom precision and scale
pub fn date_time_len(self, precision: u32) -> Self
[src]
pub fn date_time_len(self, precision: u32) -> Self
[src]Set column type as date_time with custom precision
pub fn timestamp_len(self, precision: u32) -> Self
[src]
pub fn timestamp_len(self, precision: u32) -> Self
[src]Set column type as timestamp with custom precision
pub fn binary_len(self, length: u32) -> Self
[src]
pub fn binary_len(self, length: u32) -> Self
[src]Set column type as binary with custom length
pub fn money_len(self, precision: u32, scale: u32) -> Self
[src]
pub fn money_len(self, precision: u32, scale: u32) -> Self
[src]Set column type as money with custom precision ans scale
pub fn json(self) -> Self
[src]
pub fn json(self) -> Self
[src]Set column type as json. On MySQL, this is equivalent to json_binary. On MariaDB, this is equivalent to text. On PgSQL, this is equivalent to json.
pub fn json_binary(self) -> Self
[src]
pub fn json_binary(self) -> Self
[src]Set column type as json binary. On MySQL, this is equivalent to json. On MariaDB, this is equivalent to text. On PgSQL, this is equivalent to jsonb.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ColumnDef
impl !Send for ColumnDef
impl !Sync for ColumnDef
impl Unpin for ColumnDef
impl !UnwindSafe for ColumnDef
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,