[−]Struct c3p0_mysql::r2d2::mysql::Column
Represents MySql Column (column packet).
Methods
impl Column
pub fn column_length(&self) -> u32
Returns value of the column_length field of a column packet.
pub fn column_type(&self) -> ColumnType
Returns value of the column_type field of a column packet.
pub fn character_set(&self) -> u16
Returns value of the character_set field of a column packet.
pub fn flags(&self) -> ColumnFlags
Returns value of the flags field of a column packet.
pub fn decimals(&self) -> u8
Returns value of the decimals field of a column packet.
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>
Returns value of the schema field of a column packet as a string (lossy converted).
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>
Returns value of the table field of a column packet as a string (lossy converted).
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>
Returns value of the org_table field of a column packet as a string (lossy converted).
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>
Returns value of the name field of a column packet as a string (lossy converted).
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>
Returns value of the org_name field of a column packet as a string (lossy converted).
Trait Implementations
impl Clone for Column
fn clone(&self) -> Column
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for Column
impl PartialEq<Column> for Column
impl Debug for Column
Auto Trait Implementations
impl Send for Column
impl Unpin for Column
impl Sync for Column
impl UnwindSafe for Column
impl RefUnwindSafe for Column
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self