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 Obligation {
    /// AmountCents is what it costs each period.
    #[serde(rename = "amountCents", skip_serializing_if = "Option::is_none")]
    pub amount_cents: Option<i32>,
    /// AsOf is when that amount was last checked against its source, RFC 3339 date.
    #[serde(rename = "asOf", skip_serializing_if = "Option::is_none")]
    pub as_of: Option<String>,
    /// Code names the obligation so a caller can branch without reading prose.
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<String>,
    /// Every is how often it falls due — \"yearly\" for every obligation known here.
    #[serde(rename = "every", skip_serializing_if = "Option::is_none")]
    pub every: Option<String>,
    /// Label is what the payer sees.
    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
    pub label: Option<String>,
    /// Minimum marks a floor rather than a fixed price — a franchise tax that scales with shares or assets is quoted at its minimum, and an entity past the threshold owes more. Saying so is the difference between a quote and a number someone later disputes.
    #[serde(rename = "minimum", skip_serializing_if = "Option::is_none")]
    pub minimum: Option<bool>,
    /// PassThrough marks money we collect and remit to the state rather than keep.
    #[serde(rename = "passThrough", skip_serializing_if = "Option::is_none")]
    pub pass_through: Option<bool>,
    /// Source names the authority that publishes a pass-through amount, so the figure can be checked without first working out who would know.
    #[serde(rename = "source", skip_serializing_if = "Option::is_none")]
    pub source: Option<String>,
    /// Stale reports that AsOf is older than the review window. It tells; it does not block.
    #[serde(rename = "stale", skip_serializing_if = "Option::is_none")]
    pub stale: Option<bool>,
}

impl Obligation {
    pub fn new() -> Obligation {
        Obligation {
            amount_cents: None,
            as_of: None,
            code: None,
            every: None,
            label: None,
            minimum: None,
            pass_through: None,
            source: None,
            stale: None,
        }
    }
}