summaryrefslogtreecommitdiff
path: root/src/posts/abstractions/repo.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/posts/abstractions/repo.rs')
-rw-r--r--src/posts/abstractions/repo.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/posts/abstractions/repo.rs b/src/posts/abstractions/repo.rs
index 6fcb385..6fd5d08 100644
--- a/src/posts/abstractions/repo.rs
+++ b/src/posts/abstractions/repo.rs
@@ -2,4 +2,5 @@ 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;
}