pub struct ColumnInfo {
pub name: String,
pub ordinal_position: u32,
pub data_type: String,
pub nullable: bool,
pub default: Option<String>,
pub max_length: Option<u64>,
pub numeric_precision: Option<u32>,
pub numeric_scale: Option<u32>,
}Expand description
A column in a table.
Fields§
§name: StringThe column name.
ordinal_position: u32The 1-based position of the column in the table definition.
data_type: StringThe SQL data type name as reported by the backend.
nullable: boolWhether the column accepts NULL values.
default: Option<String>The column default expression, if any.
max_length: Option<u64>Maximum character/byte length, if applicable.
numeric_precision: Option<u32>Numeric precision, if applicable.
numeric_scale: Option<u32>Numeric scale, if applicable.
Trait Implementations§
Source§impl Clone for ColumnInfo
impl Clone for ColumnInfo
Source§fn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ColumnInfo
impl Debug for ColumnInfo
impl Eq for ColumnInfo
Source§impl PartialEq for ColumnInfo
impl PartialEq for ColumnInfo
Source§fn eq(&self, other: &ColumnInfo) -> bool
fn eq(&self, other: &ColumnInfo) -> bool
Tests for
self and other values to be equal, and is used by ==.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 UnsafeUnpin 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