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 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,
}
}
}