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 CaptableHolding {
    /// FullyDiluted is shares plus options.
    #[serde(rename = "fullyDiluted", skip_serializing_if = "Option::is_none")]
    pub fully_diluted: Option<i32>,
    /// Name is the stakeholder's name.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// Options is the shares under this stakeholder's non-terminal option grants.
    #[serde(rename = "options", skip_serializing_if = "Option::is_none")]
    pub options: Option<i32>,
    /// OwnershipPct is fullyDiluted as a percentage of the company's fullyDilutedShares, rounded to two decimals; 0 when nothing is issued.
    #[serde(rename = "ownershipPct", skip_serializing_if = "Option::is_none")]
    pub ownership_pct: Option<f64>,
    /// Shares is the shares this stakeholder holds by certificate.
    #[serde(rename = "shares", skip_serializing_if = "Option::is_none")]
    pub shares: Option<i32>,
    /// StakeholderID addresses the stakeholder these totals are for.
    #[serde(rename = "stakeholderId", skip_serializing_if = "Option::is_none")]
    pub stakeholder_id: Option<String>,
}

impl CaptableHolding {
    pub fn new() -> CaptableHolding {
        CaptableHolding {
            fully_diluted: None,
            name: None,
            options: None,
            ownership_pct: None,
            shares: None,
            stakeholder_id: None,
        }
    }
}