forked from jmug/stoatchat
feat(safety): fetch reports and fetch snapshot API
This commit is contained in:
@@ -5,4 +5,7 @@ use crate::Result;
|
||||
pub trait AbstractReport: Sync + Send {
|
||||
/// Insert a new report into the database
|
||||
async fn insert_report(&self, report: &Report) -> Result<()>;
|
||||
|
||||
/// Fetch reports
|
||||
async fn fetch_reports(&self) -> Result<Vec<Report>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user