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 O11yPeriodStatusMaintenance {
    /// AffectedComponents is what the window touches.
    #[serde(rename = "affected_components", skip_serializing_if = "Option::is_none")]
    pub affected_components: Option<Vec<models::O11yPeriodStatusComponent>>,
    /// EndsAt is when it is expected to finish, RFC3339 UTC.
    #[serde(rename = "ends_at", skip_serializing_if = "Option::is_none")]
    pub ends_at: Option<String>,
    /// ID is the window's handle.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// LastUpdateAt is when the window was last revised, RFC3339 UTC.
    #[serde(rename = "last_update_at", skip_serializing_if = "Option::is_none")]
    pub last_update_at: Option<String>,
    /// LastUpdateMessage is the text of that revision.
    #[serde(rename = "last_update_message", skip_serializing_if = "Option::is_none")]
    pub last_update_message: Option<String>,
    /// Name is its one-line headline.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// StartsAt is when work begins, RFC3339 UTC.
    #[serde(rename = "starts_at", skip_serializing_if = "Option::is_none")]
    pub starts_at: Option<String>,
    /// Status is where the window is in its life, in the client's own vocabulary.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// URL points at the human status page, as every link in this document does.
    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
    pub url: Option<String>,
}

impl O11yPeriodStatusMaintenance {
    pub fn new() -> O11yPeriodStatusMaintenance {
        O11yPeriodStatusMaintenance {
            affected_components: None,
            ends_at: None,
            id: None,
            last_update_at: None,
            last_update_message: None,
            name: None,
            starts_at: None,
            status: None,
            url: None,
        }
    }
}