9f341d4
18339f6
1 2 3 4
5
6
use crate::posts::abstractions::post::Post; pub trait PostRepo { fn load(&self) -> impl IntoIterator<Item = impl Post>; fn by_id(&self, post_id: &str) -> impl Post; }