hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * 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,
        }
    }
}