pub trait Reportable {
type Form;
type IdType;
+ type ObjectIdType;
async fn report(pool: &mut DbPool<'_>, form: &Self::Form) -> Result<Self, Error>
where
Self: Sized;
report_id: Self::IdType,
resolver_id: PersonId,
) -> Result<usize, Error>
+ where
+ Self: Sized;
+ async fn resolve_all_for_object(
+ pool: &mut DbPool<'_>,
+ comment_id_: Self::ObjectIdType,
+ by_resolver_id: PersonId,
+ ) -> Result<usize, Error>
where
Self: Sized;
async fn unresolve(