pub trait ProjectRepo: Send + Sync {
// Required methods
fn list(&self) -> Vec<Project>;
fn get(&self, id: &ProjectId) -> Option<Project>;
fn upsert(&self, project: &Project);
}Required Methods§
fn list(&self) -> Vec<Project>
fn get(&self, id: &ProjectId) -> Option<Project>
fn upsert(&self, project: &Project)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".