parent
21ba0d9882
commit
1d8b050a3d
@ -0,0 +1,4 @@
|
||||
mod state;
|
||||
mod task;
|
||||
pub use crate::state::state::ApplicationState;
|
||||
pub use crate::state::task::Task;
|
@ -0,0 +1,18 @@
|
||||
/// Struct representing a single task
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct Task {
|
||||
pub title: String,
|
||||
pub notes: String,
|
||||
pub tags: Vec<String>,
|
||||
}
|
||||
|
||||
impl Task {
|
||||
/// Testing function to generate a new dummy task
|
||||
pub fn new_test_task() -> Self {
|
||||
Task {
|
||||
title: "This is a test".to_string(),
|
||||
notes: "".to_string(),
|
||||
tags: vec![],
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue