use date::Date;
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
pub struct Annotation {
entry: Date,
description: String,
}
impl Annotation {
pub fn new(entry: Date, description: String) -> Annotation {
Annotation {
entry: entry,
description: description,
}
}
pub fn entry(&self) -> &Date {
&self.entry
}
pub fn entry_mut(&mut self) -> &mut Date {
&mut self.entry
}
pub fn description(&self) -> &String {
&self.description
}
pub fn description_mut(&mut self) -> &mut String {
&mut self.description
}
}
#[cfg(test)]
mod test {}