pub struct DdColumn(/* private fields */);Expand description
Opaque MySQL data-dictionary dd::Column
Implementations§
Source§impl DdColumn
impl DdColumn
Sourcepub fn column_type(&self) -> ColumnType
pub fn column_type(&self) -> ColumnType
Column type.
Sourcepub fn is_nullable(&self) -> bool
pub fn is_nullable(&self) -> bool
true when the column allows NULL.
Sourcepub fn is_unsigned(&self) -> bool
pub fn is_unsigned(&self) -> bool
true for unsigned integer columns.
Sourcepub fn char_length(&self) -> u32
pub fn char_length(&self) -> u32
Declared character length (VARCHAR(N) returns N).
true for any non-HT_VISIBLE column (SE-hidden, SQL-hidden,
USER-hidden). Engines that build their own row layout should skip these.
Sourcepub fn ordinal_position(&self) -> u32
pub fn ordinal_position(&self) -> u32
1-based ordinal position within the table.
Trait Implementations§
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
Mutably borrows from an owned value. Read more