Skip to main content

FromDbCell

Trait FromDbCell 

Source
pub trait FromDbCell: Sized {
    // Required method
    fn from_cell(name: &str, cell: &DbCell) -> Result<Self, DbError>;
}

Required Methods§

Source

fn from_cell(name: &str, cell: &DbCell) -> Result<Self, DbError>

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 FromDbCell for DateTime<Local>

Source§

impl FromDbCell for DateTime<Utc>

Source§

impl FromDbCell for String

Source§

impl FromDbCell for Value

Source§

impl FromDbCell for bool

Source§

fn from_cell(name: &str, cell: &DbCell) -> Result<bool, DbError>

Source§

impl FromDbCell for i16

Source§

fn from_cell(name: &str, cell: &DbCell) -> Result<i16, DbError>

Source§

impl FromDbCell for i32

Source§

fn from_cell(name: &str, cell: &DbCell) -> Result<i32, DbError>

Source§

impl FromDbCell for i64

Source§

fn from_cell(name: &str, cell: &DbCell) -> Result<i64, DbError>

Source§

impl<T> FromDbCell for Option<T>
where T: FromDbCell,

Source§

fn from_cell(name: &str, cell: &DbCell) -> Result<Option<T>, DbError>

Implementors§