Trait FromTable

Source
pub trait FromTable: Sized {
    // Required method
    fn from_table(result_set: &ResultSet) -> Result<Self, GraphError>;
}

Required Methods§

Source

fn from_table(result_set: &ResultSet) -> Result<Self, GraphError>

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.

Implementations on Foreign Types§

Source§

impl FromTable for ()

Source§

fn from_table(result_set: &ResultSet) -> Result<Self, GraphError>

Source§

impl<T: FromRow> FromTable for Vec<T>

Source§

fn from_table(result_set: &ResultSet) -> Result<Self, GraphError>

Implementors§

Source§

impl FromTable for ResultSet

Source§

impl<T: FromRow> FromTable for T