pub struct ColumnInfo {
pub name: String,
pub col_type: ColumnType,
pub default: Option<ColumnExpression>,
pub generated: Option<ColumnExpression>,
pub not_null: Option<NotNull>,
pub is_identity: bool,
}
Available on crate features
postgres
and def
only.Fieldsยง
ยงname: String
The name of the column
col_type: ColumnType
The type of the column with any additional definitions such as the precision or the character set
default: Option<ColumnExpression>
The default value experssion for this column, if any
generated: Option<ColumnExpression>
The generation expression for this column, if it is a generated colum
not_null: Option<NotNull>
ยงis_identity: bool
Implementationsยง
Sourceยงimpl ColumnInfo
impl ColumnInfo
pub fn write(&self) -> ColumnDef
Available on crate feature
writer
only.pub fn write_col_type(&self) -> ColumnType
Available on crate feature
writer
only.Trait Implementationsยง
Sourceยงimpl Clone for ColumnInfo
impl Clone for ColumnInfo
Sourceยงfn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
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 ColumnInfo
impl Debug for ColumnInfo
Sourceยงimpl PartialEq for ColumnInfo
impl PartialEq for ColumnInfo
impl StructuralPartialEq for ColumnInfo
Auto Trait Implementationsยง
impl Freeze for ColumnInfo
impl RefUnwindSafe for ColumnInfo
impl !Send for ColumnInfo
impl !Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnwindSafe for ColumnInfo
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