pub struct Column { /* private fields */ }
Expand description
Represents MySql Column (column packet).
Implementations§
source§impl Column
impl Column
sourcepub fn column_length(&self) -> u32
pub fn column_length(&self) -> u32
Returns value of the column_length field of a column packet.
sourcepub fn column_type(&self) -> ColumnType
pub fn column_type(&self) -> ColumnType
Returns value of the column_type field of a column packet.
sourcepub fn character_set(&self) -> u16
pub fn character_set(&self) -> u16
Returns value of the character_set field of a column packet.
sourcepub fn flags(&self) -> ColumnFlags
pub fn flags(&self) -> ColumnFlags
Returns value of the flags field of a column packet.
sourcepub fn schema_ref(&self) -> &[u8] ⓘ
pub fn schema_ref(&self) -> &[u8] ⓘ
Returns value of the schema field of a column packet as a byte slice.
sourcepub fn schema_str(&self) -> Cow<'_, str>
pub fn schema_str(&self) -> Cow<'_, str>
Returns value of the schema field of a column packet as a string (lossy converted).
sourcepub fn table_ref(&self) -> &[u8] ⓘ
pub fn table_ref(&self) -> &[u8] ⓘ
Returns value of the table field of a column packet as a byte slice.
sourcepub fn table_str(&self) -> Cow<'_, str>
pub fn table_str(&self) -> Cow<'_, str>
Returns value of the table field of a column packet as a string (lossy converted).
sourcepub fn org_table_ref(&self) -> &[u8] ⓘ
pub fn org_table_ref(&self) -> &[u8] ⓘ
Returns value of the org_table field of a column packet as a byte slice.
“org_table” is for original table name.
sourcepub fn org_table_str(&self) -> Cow<'_, str>
pub fn org_table_str(&self) -> Cow<'_, str>
Returns value of the org_table field of a column packet as a string (lossy converted).
sourcepub fn name_ref(&self) -> &[u8] ⓘ
pub fn name_ref(&self) -> &[u8] ⓘ
Returns value of the name field of a column packet as a byte slice.
sourcepub fn name_str(&self) -> Cow<'_, str>
pub fn name_str(&self) -> Cow<'_, str>
Returns value of the name field of a column packet as a string (lossy converted).
sourcepub fn org_name_ref(&self) -> &[u8] ⓘ
pub fn org_name_ref(&self) -> &[u8] ⓘ
Returns value of the org_name field of a column packet as a byte slice.
“org_name” is for original column name.
sourcepub fn org_name_str(&self) -> Cow<'_, str>
pub fn org_name_str(&self) -> Cow<'_, str>
Returns value of the org_name field of a column packet as a string (lossy converted).