Struct ColumnInfo
pub struct ColumnInfo {
pub name: String,
pub col_type: ColumnType,
pub null: bool,
pub is_identity: bool,
pub collation: Option<Collation>,
pub default: Option<ColumnDefault>,
pub comment: Option<String>,
}Fields§
§name: StringThe name of the column
col_type: ColumnTypeThe type of the column with additional definitions, e.g. precision, length
null: boolCan this column contains null
is_identity: boolIs the identity property set
collation: Option<Collation>The unique name for the collation if the column is character data or text data type
default: Option<ColumnDefault>Default value expression for this column, if any
comment: Option<String>Column comment
Implementations§
§impl ColumnInfo
impl ColumnInfo
pub fn write(&self) -> ColumnDef
pub fn write_col_type(&self, col_def: ColumnDef) -> ColumnDef
Trait Implementations§
§impl Clone for ColumnInfo
impl Clone for ColumnInfo
§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 more§impl Debug for ColumnInfo
impl Debug for ColumnInfo
§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