bpm_core 0.1.0

Cross-platform software helping to verify, prove and secure package compilation, building, fetching, and deployment. Core package.
Documentation
1
2
3
4
5
6
7
8
9
10
#[async_trait::async_trait]
pub trait Repository<T, K> {
    async fn read_all(&self) -> Vec<T>;
    async fn read_by_key(&self, key: &K) -> Option<T>;
    async fn create(&self, document: &T);
    async fn update(&self, document: &T);
    //async fn delete(&self, key: K) -> T;

    async fn exists_by_key(&self, key: &K) -> bool;
}