Trait lemmy_db_schema::traits::Likeable [−][src]
pub trait Likeable {
type Form;
type IdType;
fn like(conn: &PgConnection, form: &Self::Form) -> Result<Self, Error>
where
Self: Sized;
fn remove(
conn: &PgConnection,
person_id: PersonId,
item_id: Self::IdType
) -> Result<usize, Error>
where
Self: Sized;
}