| 13 | |
| 14 | #[derive(Deserialize, Serialize, Debug)] |
| 15 | pub struct Task { |
| 16 | pub user_uuid: String, |
| 17 | pub task_uuid: String, |
| 18 | pub task_type: String, |
| 19 | pub state: TaskState, |
| 20 | pub source_file: String, |
| 21 | pub result_file: Option<String> |
| 22 | } |
| 23 | |
| 24 | impl Task { |
| 25 | pub fn new(user_uuid: String, task_type: String, source_file: String) -> Task { |
nothing calls this directly
no outgoing calls
no test coverage detected