Trait sqlx_core::io::Decode

source ·
pub trait Decode<'de, Context = ()>where
    Self: Sized,{
    // Required method
    fn decode_with(buf: Bytes, context: Context) -> Result<Self, Error>;

    // Provided method
    fn decode(buf: Bytes) -> Result<Self, Error>
       where Self: Decode<'de, ()> { ... }
}

Required Methods§

source

fn decode_with(buf: Bytes, context: Context) -> Result<Self, Error>

Provided Methods§

source

fn decode(buf: Bytes) -> Result<Self, Error>where Self: Decode<'de, ()>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Decode<'_> for ()

source§

impl Decode<'_> for Bytes

source§

fn decode_with(buf: Bytes, _: ()) -> Result<Self, Error>

Implementors§