FromRawRow

Trait FromRawRow 

Source
pub trait FromRawRow<'buf>: Sized {
    // Required method
    fn from_raw_row(
        cols: &[ColumnDefinition<'_>],
        row: BinaryRowPayload<'buf>,
    ) -> Result<Self>;
}
Expand description

Trait for types that can be decoded from a MySQL row.

Required Methods§

Source

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'buf, 'value, A: FromRawValue<'buf>> FromRawRow<'buf> for (A,)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>> FromRawRow<'buf> for (A, B)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>, E: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D, E)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>, E: FromRawValue<'buf>, F: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D, E, F)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>, E: FromRawValue<'buf>, F: FromRawValue<'buf>, G: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D, E, F, G)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>, E: FromRawValue<'buf>, F: FromRawValue<'buf>, G: FromRawValue<'buf>, H: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D, E, F, G, H)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>, E: FromRawValue<'buf>, F: FromRawValue<'buf>, G: FromRawValue<'buf>, H: FromRawValue<'buf>, I: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D, E, F, G, H, I)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>, E: FromRawValue<'buf>, F: FromRawValue<'buf>, G: FromRawValue<'buf>, H: FromRawValue<'buf>, I: FromRawValue<'buf>, J: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D, E, F, G, H, I, J)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>, E: FromRawValue<'buf>, F: FromRawValue<'buf>, G: FromRawValue<'buf>, H: FromRawValue<'buf>, I: FromRawValue<'buf>, J: FromRawValue<'buf>, K: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D, E, F, G, H, I, J, K)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Source§

impl<'buf, 'value, A: FromRawValue<'buf>, B: FromRawValue<'buf>, C: FromRawValue<'buf>, D: FromRawValue<'buf>, E: FromRawValue<'buf>, F: FromRawValue<'buf>, G: FromRawValue<'buf>, H: FromRawValue<'buf>, I: FromRawValue<'buf>, J: FromRawValue<'buf>, K: FromRawValue<'buf>, L: FromRawValue<'buf>> FromRawRow<'buf> for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

fn from_raw_row( cols: &[ColumnDefinition<'_>], row: BinaryRowPayload<'buf>, ) -> Result<Self>

Implementors§