ItemId is the Url

This commit is contained in:
daladim 2021-03-21 23:54:33 +01:00
parent cbffef8b97
commit 499f25b9b9
5 changed files with 52 additions and 20 deletions

View file

@ -20,9 +20,9 @@ pub struct Task {
impl Task {
/// Create a new Task
pub fn new(name: String, last_modified: DateTime<Utc>) -> Self {
pub fn new(name: String, id: ItemId, last_modified: DateTime<Utc>) -> Self {
Self {
id: ItemId::new(),
id,
name,
last_modified,
completed: false,