pub struct ColumnDef {Show 14 fields
pub name: String,
pub data_type: DataType,
pub nullable: bool,
pub position: u16,
pub default_expr: Option<Expr>,
pub default_sql: Option<String>,
pub check_expr: Option<Expr>,
pub check_sql: Option<String>,
pub check_name: Option<String>,
pub is_with_timezone: bool,
pub generated_expr: Option<Expr>,
pub generated_sql: Option<String>,
pub generated_kind: Option<GeneratedKind>,
pub collation: Collation,
}Fields§
§name: String§data_type: DataType§nullable: bool§position: u16§default_expr: Option<Expr>§default_sql: Option<String>§check_expr: Option<Expr>§check_sql: Option<String>§check_name: Option<String>§is_with_timezone: boolDisplay-only flag for TIMESTAMPTZ / TIMETZ; storage is i64 µs UTC.
generated_expr: Option<Expr>§generated_sql: Option<String>§generated_kind: Option<GeneratedKind>§collation: CollationTrait Implementations§
Auto Trait Implementations§
impl Freeze for ColumnDef
impl RefUnwindSafe for ColumnDef
impl Send for ColumnDef
impl Sync for ColumnDef
impl Unpin for ColumnDef
impl UnsafeUnpin for ColumnDef
impl UnwindSafe for ColumnDef
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more