Skip to main content

hanzo_client/models/
upkeep.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 Upkeep {
16    /// AtLeast reports that some obligation is a minimum, so YearlyCents is a floor rather than a final figure.
17    #[serde(rename = "atLeast", skip_serializing_if = "Option::is_none")]
18    pub at_least: Option<bool>,
19    /// Currency is the ISO code every amount here is denominated in.
20    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
21    pub currency: Option<String>,
22    /// Jurisdiction is the state whose obligations these are.
23    #[serde(rename = "jurisdiction", skip_serializing_if = "Option::is_none")]
24    pub jurisdiction: Option<String>,
25    /// Obligations are the recurring charges, in the order a reader should see them.
26    #[serde(rename = "obligations", skip_serializing_if = "Option::is_none")]
27    pub obligations: Option<Vec<models::Obligation>>,
28    /// Structure is the entity this prices.
29    #[serde(rename = "structure", skip_serializing_if = "Option::is_none")]
30    pub structure: Option<String>,
31    /// YearlyCents is what the entity owes every year, all obligations summed.
32    #[serde(rename = "yearlyCents", skip_serializing_if = "Option::is_none")]
33    pub yearly_cents: Option<i32>,
34}
35
36impl Upkeep {
37    pub fn new() -> Upkeep {
38        Upkeep {
39            at_least: None,
40            currency: None,
41            jurisdiction: None,
42            obligations: None,
43            structure: None,
44            yearly_cents: None,
45        }
46    }
47}
48