#[non_exhaustive]pub struct ColumnDefinition<'a> {
pub schema: &'a str,
pub table_alias: &'a str,
pub table: &'a str,
pub column_alias: &'a str,
pub column: &'a str,
pub extended_matadata: Option<&'a str>,
pub character_set_number: u16,
pub max_column_size: u32,
pub field_types: u8,
pub field_detail_flags: u16,
pub decimals: u8,
}Expand description
Definition of a column or parameter, see https://mariadb.com/docs/server/reference/clientserver-protocol/4-server-response-packets/result-set-packets#column-definition-packet
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.schema: &'a strSchema
table_alias: &'a strAlias for the table
table: &'a strTable
column_alias: &'a strAlias for column
column: &'a strColumn
extended_matadata: Option<&'a str>Extended metadata, currently always null
character_set_number: u16Number of the character set used
max_column_size: u32The maximal column size
field_types: u8The type of the field, see https://mariadb.com/docs/server/reference/clientserver-protocol/4-server-response-packets/result-set-packets#field-types
field_detail_flags: u16Flags set on the field, see https://mariadb.com/docs/server/reference/clientserver-protocol/4-server-response-packets/result-set-packets#field-details-flag
decimals: u8decimals used
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ColumnDefinition<'a>
impl<'a> RefUnwindSafe for ColumnDefinition<'a>
impl<'a> Send for ColumnDefinition<'a>
impl<'a> Sync for ColumnDefinition<'a>
impl<'a> Unpin for ColumnDefinition<'a>
impl<'a> UnwindSafe for ColumnDefinition<'a>
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