pub struct Problem { id: i64, title: String, description: String, } impl Problem { pub(super) fn new(id: i64, title: String, description: String) -> Self { Self { id, title, description } } pub fn id(&self) -> i64 { self.id } pub fn title(&self) -> &str { &self.title } pub fn description(&self) -> &str { &self.description } }