Trait repos::Entity [] [src]

pub trait Entity {
    fn convert(row: Row) -> Self;

    fn get(_: i32) -> Option<Self> where Self: Sized { ... }
    fn count() -> i32 { ... }
    fn list() -> Vec<Self> where Self: Sized { ... }
    fn page_list(_: i32, _: i32, _: &str) -> Vec<Self> where Self: Sized { ... }
    fn delete(_: i32) -> bool { ... }
    fn new(&self) -> bool { ... }
    fn update(&self) -> bool { ... }
}

Required Methods

Provided Methods

Implementors