Skip to main content

hanzo_client/models/
build_row.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 BuildRow {
16    /// Commit is the short git ref the build pinned.
17    #[serde(rename = "commit", skip_serializing_if = "Option::is_none")]
18    pub commit: Option<String>,
19    /// Duration is the wall time of a TERMINAL build; empty while it still runs.
20    #[serde(rename = "duration", skip_serializing_if = "Option::is_none")]
21    pub duration: Option<String>,
22    /// ID is the build record's id.
23    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<String>,
25    /// Repo is the repo the build built, or the image it produced.
26    #[serde(rename = "repo", skip_serializing_if = "Option::is_none")]
27    pub repo: Option<String>,
28    /// StartedAt is when the build was recorded, RFC3339 UTC.
29    #[serde(rename = "startedAt", skip_serializing_if = "Option::is_none")]
30    pub started_at: Option<String>,
31    /// Status is the build's real state: queued, building, succeeded or failed.
32    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
33    pub status: Option<String>,
34}
35
36impl BuildRow {
37    pub fn new() -> BuildRow {
38        BuildRow {
39            commit: None,
40            duration: None,
41            id: None,
42            repo: None,
43            started_at: None,
44            status: None,
45        }
46    }
47}
48