pub struct ColumnMetadata {
pub name: String,
pub data_type: String,
pub nullable: bool,
pub default_value: Option<String>,
pub is_auto_increment: bool,
pub is_unsigned: bool,
pub enum_values: Option<Vec<String>>,
pub comment: Option<String>,
}Expand description
Metadata for a column
Fields§
§name: StringColumn name
data_type: StringData type as string (e.g., “BIGINT”, “VARCHAR(255)”)
nullable: boolWhether the column is nullable
default_value: Option<String>Default value expression (if any)
is_auto_increment: boolWhether this column is auto-increment
is_unsigned: boolWhether this column is unsigned (for numeric types)
enum_values: Option<Vec<String>>Enum values if this is an ENUM column
comment: Option<String>Column comment (if any)
Implementations§
Trait Implementations§
Source§impl Clone for ColumnMetadata
impl Clone for ColumnMetadata
Source§fn clone(&self) -> ColumnMetadata
fn clone(&self) -> ColumnMetadata
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 ColumnMetadata
impl Debug for ColumnMetadata
Source§impl<'de> Deserialize<'de> for ColumnMetadata
impl<'de> Deserialize<'de> for ColumnMetadata
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ColumnMetadata
impl RefUnwindSafe for ColumnMetadata
impl Send for ColumnMetadata
impl Sync for ColumnMetadata
impl Unpin for ColumnMetadata
impl UnwindSafe for ColumnMetadata
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