pub struct Post { title: String, link: String, created_at: String, } impl Post { pub const fn new(title: String, link: String, created_at: String) -> Self { Self { title, link, created_at } } pub const fn title(&self) -> &String { &self.title } pub const fn link(&self) -> &String { &self.link } pub const fn created_at(&self) -> &String { &self.created_at } }