Skip to main content

geoengine_api_client/models/
task_status_completed.rs

1/*
2 * Geo Engine API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * Contact: dev@geoengine.de
7 * Generated by: https://openapi-generator.tech
8 */
9
10use crate::models;
11use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct TaskStatusCompleted {
15    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
16    pub description: Option<String>,
17    #[serde(rename = "info", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
18    pub info: Option<Option<serde_json::Value>>,
19    #[serde(rename = "status")]
20    pub status: Status,
21    #[serde(rename = "taskType")]
22    pub task_type: String,
23    #[serde(rename = "timeStarted")]
24    pub time_started: String,
25    #[serde(rename = "timeTotal")]
26    pub time_total: String,
27}
28
29impl TaskStatusCompleted {
30    pub fn new(status: Status, task_type: String, time_started: String, time_total: String) -> TaskStatusCompleted {
31        TaskStatusCompleted {
32            description: None,
33            info: None,
34            status,
35            task_type,
36            time_started,
37            time_total,
38        }
39    }
40}
41/// 
42#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
43pub enum Status {
44    #[serde(rename = "completed")]
45    Completed,
46}
47
48impl Default for Status {
49    fn default() -> Status {
50        Self::Completed
51    }
52}
53