Skip to main content

hanzo_client/models/
captable_safe.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CaptableSafe {
16    /// Capital is the cash the investor put in.
17    #[serde(rename = "capital", skip_serializing_if = "Option::is_none")]
18    pub capital: Option<f64>,
19    /// DiscountRate is the discount to the next round's price, if any.
20    #[serde(rename = "discountRate", skip_serializing_if = "Option::is_none")]
21    pub discount_rate: Option<f64>,
22    /// ID is the SAFE id.
23    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<String>,
25    /// IssueDate is the ISO date the SAFE was signed.
26    #[serde(rename = "issueDate", skip_serializing_if = "Option::is_none")]
27    pub issue_date: Option<String>,
28    /// MFN is true when the SAFE carries a most-favoured-nation clause.
29    #[serde(rename = "mfn", skip_serializing_if = "Option::is_none")]
30    pub mfn: Option<bool>,
31    /// ProRata is true when the SAFE carries pro-rata rights.
32    #[serde(rename = "proRata", skip_serializing_if = "Option::is_none")]
33    pub pro_rata: Option<bool>,
34    /// PublicID is the SAFE's shareable identifier, unique within the company.
35    #[serde(rename = "publicId", skip_serializing_if = "Option::is_none")]
36    pub public_id: Option<String>,
37    /// StakeholderID is the investor.
38    #[serde(rename = "stakeholderId", skip_serializing_if = "Option::is_none")]
39    pub stakeholder_id: Option<String>,
40    /// StakeholderName is that investor's name.
41    #[serde(rename = "stakeholderName", skip_serializing_if = "Option::is_none")]
42    pub stakeholder_name: Option<String>,
43    /// Status is the SAFE's state, e.g. DRAFT or ACTIVE.
44    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
45    pub status: Option<String>,
46    /// Type is POST_MONEY or PRE_MONEY.
47    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
48    pub r#type: Option<String>,
49    /// ValuationCap is the valuation cap, if any.
50    #[serde(rename = "valuationCap", skip_serializing_if = "Option::is_none")]
51    pub valuation_cap: Option<f64>,
52}
53
54impl CaptableSafe {
55    pub fn new() -> CaptableSafe {
56        CaptableSafe {
57            capital: None,
58            discount_rate: None,
59            id: None,
60            issue_date: None,
61            mfn: None,
62            pro_rata: None,
63            public_id: None,
64            stakeholder_id: None,
65            stakeholder_name: None,
66            status: None,
67            r#type: None,
68            valuation_cap: None,
69        }
70    }
71}
72