Skip to main content

hanzo_client/models/
index_task.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
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 IndexTask {
16    /// EnqueuedAt, StartedAt and FinishedAt are the same instant: the write was applied before its task id was minted.
17    #[serde(rename = "enqueuedAt", skip_serializing_if = "Option::is_none")]
18    pub enqueued_at: Option<String>,
19    /// FinishedAt is when the write completed.
20    #[serde(rename = "finishedAt", skip_serializing_if = "Option::is_none")]
21    pub finished_at: Option<String>,
22    /// StartedAt is when the write began.
23    #[serde(rename = "startedAt", skip_serializing_if = "Option::is_none")]
24    pub started_at: Option<String>,
25    /// Status is always `succeeded`.
26    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
27    pub status: Option<String>,
28    /// Type names the kind of write, for a client that inspects it.
29    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
30    pub r#type: Option<String>,
31    /// UID echoes the task id that was asked about.
32    #[serde(rename = "uid", skip_serializing_if = "Option::is_none")]
33    pub uid: Option<i32>,
34}
35
36impl IndexTask {
37    pub fn new() -> IndexTask {
38        IndexTask {
39            enqueued_at: None,
40            finished_at: None,
41            started_at: None,
42            status: None,
43            r#type: None,
44            uid: None,
45        }
46    }
47}
48