Trait cargo_registry::model::Model [] [src]

pub trait Model: Sized {
    fn from_row(row: &Row) -> Self;
    fn table_name(_: Option<Self>) -> &'static str;

    fn find(conn: &GenericConnection, id: i32) -> CargoResult<Self> { ... }
    fn count(conn: &GenericConnection) -> CargoResult<i64> { ... }
}

Required Methods

Provided Methods

Implementors