You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
314 B
16 lines
314 B
3 years ago
|
use chrono::NaiveDate;
|
||
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
/// Represent a project that is being done
|
||
|
#[derive(Serialize, Deserialize)]
|
||
|
pub struct Project {
|
||
|
client: String,
|
||
|
date: NaiveDate,
|
||
|
}
|
||
|
|
||
|
impl Project {
|
||
|
pub fn new(client: String, date: NaiveDate) -> Self {
|
||
|
Self { client, date }
|
||
|
}
|
||
|
}
|