pub struct DdColumn {Show 25 fields
pub name: String,
pub dd_type: u64,
pub column_type_utf8: String,
pub ordinal_position: u64,
pub hidden: u64,
pub is_nullable: bool,
pub is_unsigned: bool,
pub is_auto_increment: bool,
pub is_virtual: bool,
pub char_length: u64,
pub numeric_precision: u64,
pub numeric_scale: u64,
pub datetime_precision: u64,
pub collation_id: u64,
pub default_value_utf8: String,
pub default_value_utf8_null: bool,
pub has_no_default: bool,
pub default_option: String,
pub update_option: String,
pub generation_expression: String,
pub generation_expression_utf8: String,
pub elements: Vec<DdColumnElement>,
pub comment: String,
pub is_zerofill: bool,
pub se_private_data: Option<String>,
}Expand description
Data dictionary column definition.
Fields§
§name: StringColumn name.
dd_type: u64dd_type code (internal MySQL type enumeration).
column_type_utf8: StringSQL type string from MySQL (e.g., “varchar(255)”, “int unsigned”).
ordinal_position: u64Position in the column list (1-based).
Hidden flag: 1=visible, 2=SE-hidden (DB_TRX_ID, DB_ROLL_PTR, DB_ROW_ID), 3=SQL-hidden (functional index backing columns), 4=user INVISIBLE (MySQL 8.0.23+).
is_nullable: boolWhether the column allows NULL.
is_unsigned: boolWhether the column is unsigned.
is_auto_increment: boolWhether the column is AUTO_INCREMENT.
is_virtual: boolWhether the column is virtual (generated).
char_length: u64Character length.
numeric_precision: u64Numeric precision.
numeric_scale: u64Numeric scale.
datetime_precision: u64Datetime fractional seconds precision.
collation_id: u64Collation ID for this column.
default_value_utf8: StringDefault value as UTF-8 string.
default_value_utf8_null: boolWhether default_value_utf8 is NULL.
has_no_default: boolWhether the column has no default.
default_option: StringDefault option (e.g., “CURRENT_TIMESTAMP”).
update_option: StringUpdate option (e.g., “CURRENT_TIMESTAMP”).
generation_expression: StringGeneration expression (raw).
generation_expression_utf8: StringGeneration expression as UTF-8.
elements: Vec<DdColumnElement>ENUM/SET value elements.
comment: StringColumn comment.
is_zerofill: boolWhether the column is zerofill.
se_private_data: Option<String>Storage engine private data (e.g., “version_added=1;physical_pos=5;”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DdColumn
impl<'de> Deserialize<'de> for DdColumn
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for DdColumn
impl RefUnwindSafe for DdColumn
impl Send for DdColumn
impl Sync for DdColumn
impl Unpin for DdColumn
impl UnsafeUnpin for DdColumn
impl UnwindSafe for DdColumn
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
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>
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>
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