pub struct ColumnDef {
pub name: String,
pub column_type: String,
pub is_nullable: bool,
pub default_value: Option<String>,
pub is_auto_increment: bool,
pub generation_expression: Option<String>,
pub is_virtual: Option<bool>,
pub is_invisible: bool,
pub comment: Option<String>,
}Expand description
Column definition for output.
Fields§
§name: StringColumn name.
column_type: StringSQL type string (e.g., “varchar(100)”).
is_nullable: boolWhether the column allows NULL.
default_value: Option<String>Default value expression (None if no default).
is_auto_increment: boolWhether the column is AUTO_INCREMENT.
generation_expression: Option<String>Generation expression for virtual/stored generated columns.
is_virtual: Option<bool>Whether the generated column is virtual (true) or stored (false).
is_invisible: boolWhether the column is INVISIBLE (MySQL 8.0.23+).
comment: Option<String>Column comment.
Trait 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
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