Trait diesel::types::FromSql [] [src]

pub trait FromSql<A: NativeSqlType>: Sized {
    fn from_sql(bytes: Option<&[u8]>) -> Result<Self, Box<Error>>;
}

How to deserialize a single field of a given type. The input will always be the binary representation, not the text.

Required Methods

fn from_sql(bytes: Option<&[u8]>) -> Result<Self, Box<Error>>

Implementors