Skip to main content

FromSqlText

Trait FromSqlText 

Source
pub trait FromSqlText<'a>: FromSqlBase<'a> {
    // Required method
    fn from_sql_text(
        raw: &'a str,
        field: &FieldDescription,
    ) -> Result<Self, Box<dyn Error + Sync + Send>>;
}
Expand description

Trait for types that can be deserialized from PostgreSQL text format data

Required Methods§

Source

fn from_sql_text( raw: &'a str, field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a, T> FromSqlText<'a> for Option<T>
where T: FromSqlText<'a>,

Source§

fn from_sql_text( raw: &'a str, field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a, T> FromSqlText<'a> for Vec<T>
where T: FromSqlText<'a>,

Source§

fn from_sql_text( raw: &'a str, field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for &'a str

Source§

fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for String

Source§

fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for Vec<u8>

Source§

fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for bool

Source§

fn from_sql_text( raw: &'a str, field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for char

Source§

fn from_sql_text( raw: &'a str, field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for f32

Source§

fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for f64

Source§

fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for i16

Source§

fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for i32

Source§

fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Source§

impl<'a> FromSqlText<'a> for i64

Source§

fn from_sql_text( raw: &'a str, _field: &FieldDescription, ) -> Result<Self, Box<dyn Error + Sync + Send>>

Implementors§

Source§

impl<'a> FromSqlText<'a> for Inet

Source§

impl<'a> FromSqlText<'a> for Lsn

Source§

impl<'a> FromSqlText<'a> for Oid

Source§

impl<'a> FromSqlText<'a> for Point