meta_secret_core/node/
db.rs

1use std::fmt::Error;
2use async_trait::async_trait;
3
4#[async_trait(? Send)]
5pub trait BasicRepo<T> {
6    fn save(self, entity: &T);
7    async fn get(self) -> Result<T, Error>;
8}