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 CaptableSafe {
    /// Capital is the cash the investor put in.
    #[serde(rename = "capital", skip_serializing_if = "Option::is_none")]
    pub capital: Option<f64>,
    /// DiscountRate is the discount to the next round's price, if any.
    #[serde(rename = "discountRate", skip_serializing_if = "Option::is_none")]
    pub discount_rate: Option<f64>,
    /// ID is the SAFE id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// IssueDate is the ISO date the SAFE was signed.
    #[serde(rename = "issueDate", skip_serializing_if = "Option::is_none")]
    pub issue_date: Option<String>,
    /// MFN is true when the SAFE carries a most-favoured-nation clause.
    #[serde(rename = "mfn", skip_serializing_if = "Option::is_none")]
    pub mfn: Option<bool>,
    /// ProRata is true when the SAFE carries pro-rata rights.
    #[serde(rename = "proRata", skip_serializing_if = "Option::is_none")]
    pub pro_rata: Option<bool>,
    /// PublicID is the SAFE's shareable identifier, unique within the company.
    #[serde(rename = "publicId", skip_serializing_if = "Option::is_none")]
    pub public_id: Option<String>,
    /// StakeholderID is the investor.
    #[serde(rename = "stakeholderId", skip_serializing_if = "Option::is_none")]
    pub stakeholder_id: Option<String>,
    /// StakeholderName is that investor's name.
    #[serde(rename = "stakeholderName", skip_serializing_if = "Option::is_none")]
    pub stakeholder_name: Option<String>,
    /// Status is the SAFE's state, e.g. DRAFT or ACTIVE.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Type is POST_MONEY or PRE_MONEY.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
    /// ValuationCap is the valuation cap, if any.
    #[serde(rename = "valuationCap", skip_serializing_if = "Option::is_none")]
    pub valuation_cap: Option<f64>,
}

impl CaptableSafe {
    pub fn new() -> CaptableSafe {
        CaptableSafe {
            capital: None,
            discount_rate: None,
            id: None,
            issue_date: None,
            mfn: None,
            pro_rata: None,
            public_id: None,
            stakeholder_id: None,
            stakeholder_name: None,
            status: None,
            r#type: None,
            valuation_cap: None,
        }
    }
}