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 Upkeep {
    /// AtLeast reports that some obligation is a minimum, so YearlyCents is a floor rather than a final figure.
    #[serde(rename = "atLeast", skip_serializing_if = "Option::is_none")]
    pub at_least: Option<bool>,
    /// Currency is the ISO code every amount here is denominated in.
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    /// Jurisdiction is the state whose obligations these are.
    #[serde(rename = "jurisdiction", skip_serializing_if = "Option::is_none")]
    pub jurisdiction: Option<String>,
    /// Obligations are the recurring charges, in the order a reader should see them.
    #[serde(rename = "obligations", skip_serializing_if = "Option::is_none")]
    pub obligations: Option<Vec<models::Obligation>>,
    /// Structure is the entity this prices.
    #[serde(rename = "structure", skip_serializing_if = "Option::is_none")]
    pub structure: Option<String>,
    /// YearlyCents is what the entity owes every year, all obligations summed.
    #[serde(rename = "yearlyCents", skip_serializing_if = "Option::is_none")]
    pub yearly_cents: Option<i32>,
}

impl Upkeep {
    pub fn new() -> Upkeep {
        Upkeep {
            at_least: None,
            currency: None,
            jurisdiction: None,
            obligations: None,
            structure: None,
            yearly_cents: None,
        }
    }
}