1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/*
* Hanzo Cloud API
*
* 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/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DeployRecord {
/// Created reports whether this call recorded a new attribution edge (201) or found an existing one (200). Absent when nothing was recorded.
#[serde(rename = "created", skip_serializing_if = "Option::is_none")]
pub created: Option<bool>,
/// CreatedAt is when the edge was first recorded, in unix seconds. Absent when nothing was recorded.
#[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
pub created_at: Option<i32>,
/// DeployID is the attribution edge's handle. Absent when nothing was recorded.
#[serde(rename = "deployId", skip_serializing_if = "Option::is_none")]
pub deploy_id: Option<String>,
/// Reason says why nothing was attributed. Present only when recorded is false.
#[serde(rename = "reason", skip_serializing_if = "Option::is_none")]
pub reason: Option<String>,
/// Recorded reports whether the deploy was attributed to an author at all. False is the ordinary answer for a project built from no repository, or from one no author has verified — never an error, so a deploy path can fire this unconditionally.
#[serde(rename = "recorded", skip_serializing_if = "Option::is_none")]
pub recorded: Option<bool>,
/// Self reports that the deploying org IS the author's org. Such a deploy is recorded for provenance but excluded from accrual. Absent when nothing was recorded.
#[serde(rename = "self", skip_serializing_if = "Option::is_none")]
pub param_self: Option<bool>,
}
impl DeployRecord {
pub fn new() -> DeployRecord {
DeployRecord {
created: None,
created_at: None,
deploy_id: None,
reason: None,
recorded: None,
param_self: None,
}
}
}