revolt_database/models/safety_snapshots/
ops.rs

1use revolt_result::Result;
2
3use crate::Snapshot;
4
5#[cfg(feature = "mongodb")]
6mod mongodb;
7mod reference;
8
9#[async_trait]
10pub trait AbstractSnapshot: Sync + Send {
11    /// Insert a new snapshot into the database
12    async fn insert_snapshot(&self, snapshot: &Snapshot) -> Result<()>;
13}