ItemId is the Url
This commit is contained in:
parent
cbffef8b97
commit
499f25b9b9
5 changed files with 52 additions and 20 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue