SqlxDecodeNamed

Trait SqlxDecodeNamed 

Source
pub trait SqlxDecodeNamed: Sized {
    // Required method
    fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>;
}
Expand description

Trait for decoding values from a row by column name.

Required Methods§

Source

fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>

Decode a value from a row by column name.

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 SqlxDecodeNamed for bool

Source§

fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>

Source§

impl SqlxDecodeNamed for f32

Source§

fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>

Source§

impl SqlxDecodeNamed for f64

Source§

fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>

Source§

impl SqlxDecodeNamed for i32

Source§

fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>

Source§

impl SqlxDecodeNamed for i64

Source§

fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>

Source§

impl SqlxDecodeNamed for String

Source§

fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>

Source§

impl SqlxDecodeNamed for Vec<u8>

Source§

fn decode_by_name(row: &SqlxRow, name: &str) -> SqlxResult<Self>

Implementors§