Skip to main content

FromRow

Trait FromRow 

Source
pub trait FromRow: Sized {
    // Required method
    fn from_row(row: &DatabaseRow) -> DatabaseResult<Self>;
}
Expand description

从数据库行解析实体

Required Methods§

Source

fn from_row(row: &DatabaseRow) -> DatabaseResult<Self>

从数据库行解析

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§