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