forked from jmug/stoatchat
12 lines
297 B
Rust
12 lines
297 B
Rust
use crate::models::Report;
|
|
use crate::Result;
|
|
|
|
#[async_trait]
|
|
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>>;
|
|
}
|