pub struct Column {Show 15 fields
pub database: Option<Cow<'static, str>>,
pub table: Cow<'static, str>,
pub name: Cow<'static, str>,
pub sql_type: Cow<'static, str>,
pub not_null: bool,
pub autoincrement: bool,
pub primary_key: bool,
pub unique: bool,
pub default: Option<Cow<'static, str>>,
pub on_update: Option<Cow<'static, str>>,
pub generated: Option<Generated>,
pub inline_type: Option<InlineType>,
pub charset: Option<Cow<'static, str>>,
pub collation: Option<Cow<'static, str>>,
pub comment: Option<Cow<'static, str>>,
}Expand description
A column and its complete MySQL definition.
Fields§
§database: Option<Cow<'static, str>>§table: Cow<'static, str>§name: Cow<'static, str>§sql_type: Cow<'static, str>§not_null: bool§autoincrement: bool§primary_key: bool§unique: bool§default: Option<Cow<'static, str>>§on_update: Option<Cow<'static, str>>§generated: Option<Generated>§inline_type: Option<InlineType>§charset: Option<Cow<'static, str>>§collation: Option<Cow<'static, str>>§comment: Option<Cow<'static, str>>Implementations§
Trait Implementations§
impl Eq for Column
impl StructuralPartialEq for Column
Auto Trait Implementations§
impl Freeze for Column
impl RefUnwindSafe for Column
impl Send for Column
impl Sync for Column
impl Unpin for Column
impl UnsafeUnpin for Column
impl UnwindSafe for Column
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