Struct mysql_common::packets::Column [−][src]
pub struct Column { /* fields omitted */ }
Represents MySql Column (column packet).
Methods
impl Column
[src]
impl Column
pub fn column_length(&self) -> u32
[src]
pub fn column_length(&self) -> u32
Returns value of the column_length field of a column packet.
pub fn column_type(&self) -> ColumnType
[src]
pub fn column_type(&self) -> ColumnType
Returns value of the column_type field of a column packet.
pub fn character_set(&self) -> u16
[src]
pub fn character_set(&self) -> u16
Returns value of the character_set field of a column packet.
pub fn flags(&self) -> ColumnFlags
[src]
pub fn flags(&self) -> ColumnFlags
Returns value of the flags field of a column packet.
pub fn decimals(&self) -> u8
[src]
pub fn decimals(&self) -> u8
Returns value of the decimals field of a column packet.
pub fn schema_ref(&self) -> &[u8]
[src]
pub fn schema_ref(&self) -> &[u8]
Returns value of the schema field of a column packet as a byte slice.
pub fn schema_str(&self) -> Cow<str>
[src]
pub fn schema_str(&self) -> Cow<str>
Returns value of the schema field of a column packet as a string (lossy converted).
pub fn table_ref(&self) -> &[u8]
[src]
pub fn table_ref(&self) -> &[u8]
Returns value of the table field of a column packet as a byte slice.
pub fn table_str(&self) -> Cow<str>
[src]
pub fn table_str(&self) -> Cow<str>
Returns value of the table field of a column packet as a string (lossy converted).
pub fn org_table_ref(&self) -> &[u8]
[src]
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.
pub fn org_table_str(&self) -> Cow<str>
[src]
pub fn org_table_str(&self) -> Cow<str>
Returns value of the org_table field of a column packet as a string (lossy converted).
pub fn name_ref(&self) -> &[u8]
[src]
pub fn name_ref(&self) -> &[u8]
Returns value of the name field of a column packet as a byte slice.
pub fn name_str(&self) -> Cow<str>
[src]
pub fn name_str(&self) -> Cow<str>
Returns value of the name field of a column packet as a string (lossy converted).
pub fn org_name_ref(&self) -> &[u8]
[src]
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.
pub fn org_name_str(&self) -> Cow<str>
[src]
pub fn org_name_str(&self) -> Cow<str>
Returns value of the org_name field of a column packet as a string (lossy converted).
Trait Implementations
impl Clone for Column
[src]
impl Clone for Column
fn clone(&self) -> Column
[src]
fn clone(&self) -> Column
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Eq for Column
[src]
impl Eq for Column
impl PartialEq for Column
[src]
impl PartialEq for Column
fn eq(&self, other: &Column) -> bool
[src]
fn eq(&self, other: &Column) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Column) -> bool
[src]
fn ne(&self, other: &Column) -> bool
This method tests for !=
.
impl Debug for Column
[src]
impl Debug for Column