Trait elephantry::FromSql [−][src]
Trait to allow a rust type to be translated form a SQL value.
Required methods
fn from_binary(ty: &Type, raw: Option<&[u8]>) -> Result<Self>
[src]
Create a new struct from the binary representation.
See the postgresql
adt
module source code, mainly *_send
functions.
fn from_text(ty: &Type, raw: Option<&str>) -> Result<Self>
[src]
Create a new struct from the text representation.
Provided methods
fn from_sql(ty: &Type, format: Format, raw: Option<&[u8]>) -> Result<Self>
[src]
Create a new struct from SQL value.