summaryrefslogtreecommitdiff
path: root/src/posts/abstractions/repo.rs
blob: 6fd5d087626efed9336d225a6e38d7bee1b84a93 (plain) (blame)
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;
}