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 CaptableSummary {
    /// ByShareClass is each share class's authorized-versus-issued position, in class creation order.
    #[serde(rename = "byShareClass", skip_serializing_if = "Option::is_none")]
    pub by_share_class: Option<Vec<models::CaptableClassHolding>>,
    /// ByStakeholder is each stakeholder's position, largest holding first.
    #[serde(rename = "byStakeholder", skip_serializing_if = "Option::is_none")]
    pub by_stakeholder: Option<Vec<models::CaptableHolding>>,
    /// Company names the company the cap table is computed for.
    #[serde(rename = "company", skip_serializing_if = "Option::is_none")]
    pub company: Option<Box<models::CaptableSummaryCompany>>,
    /// Convertibles is the capital on SAFEs and notes that have not converted.
    #[serde(rename = "convertibles", skip_serializing_if = "Option::is_none")]
    pub convertibles: Option<Box<models::CaptableConvertibles>>,
    /// Rounds is the fundraising rollup.
    #[serde(rename = "rounds", skip_serializing_if = "Option::is_none")]
    pub rounds: Option<Box<models::CaptableRoundTotals>>,
    /// Totals is the company-wide share count.
    #[serde(rename = "totals", skip_serializing_if = "Option::is_none")]
    pub totals: Option<Box<models::CaptableTotals>>,
}

impl CaptableSummary {
    pub fn new() -> CaptableSummary {
        CaptableSummary {
            by_share_class: None,
            by_stakeholder: None,
            company: None,
            convertibles: None,
            rounds: None,
            totals: None,
        }
    }
}