pub struct ColumnData {
pub name: String,
pub type_id: TypeId,
pub col_type: u8,
pub flags: u16,
pub user_type: u32,
pub type_info: TypeInfo,
}Expand description
Column definition within metadata.
Fields§
§name: StringColumn name.
type_id: TypeIdColumn data type ID.
col_type: u8Column data type raw byte (for unknown types).
flags: u16Column flags.
user_type: u32User type ID.
type_info: TypeInfoType-specific metadata.
Implementations§
Source§impl ColumnData
impl ColumnData
Sourcepub fn is_nullable(&self) -> bool
pub fn is_nullable(&self) -> bool
Check if this column is nullable.
Sourcepub fn fixed_size(&self) -> Option<usize>
pub fn fixed_size(&self) -> Option<usize>
Get the fixed size in bytes for this column, if applicable.
Returns None for variable-length types.
Trait Implementations§
Source§impl Clone for ColumnData
impl Clone for ColumnData
Source§fn clone(&self) -> ColumnData
fn clone(&self) -> ColumnData
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 moreAuto Trait Implementations§
impl Freeze for ColumnData
impl RefUnwindSafe for ColumnData
impl Send for ColumnData
impl Sync for ColumnData
impl Unpin for ColumnData
impl UnwindSafe for ColumnData
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