summaryrefslogtreecommitdiff
path: root/src/posts/abstractions/post.rs
blob: 966782859a0539ea4f11a9c9f81ca1d0d851da19 (plain) (blame)
1
2
3
4
5
6
7
use std::{borrow::Cow, fmt};

pub trait Post: fmt::Debug + Ord {
    fn get_title(&self) -> &str;
    fn get_article(&self) -> Cow<str>;
    fn get_description(&self) -> Cow<str>;
}