summaryrefslogtreecommitdiff
path: root/src/database/problem.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/problem.rs')
-rw-r--r--src/database/problem.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database/problem.rs b/src/database/problem.rs
index fdbb2b5..c3e04c2 100644
--- a/src/database/problem.rs
+++ b/src/database/problem.rs
@@ -5,10 +5,11 @@ pub struct Problem {
}
impl Problem {
- pub fn new(id: i64, title: String, description: String) -> Self {
+ 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 }
}