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