Skip to main content

FromQuery

Trait FromQuery 

Source
pub trait FromQuery: Sized {
    type Based: AsTable;

    // Required methods
    fn select_sql() -> String;
    fn from_row(row: &Row<'_>) -> Result<Self, Error>;
}
Available on crate feature utils only.

Required Associated Types§

Required Methods§

Source

fn select_sql() -> String

Source

fn from_row(row: &Row<'_>) -> Result<Self, Error>

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.

Implementors§