Skip to main content

hanzo_client/models/
captable_option.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 CaptableOption {
16    /// CliffYears is how many years before any of the grant vests.
17    #[serde(rename = "cliffYears", skip_serializing_if = "Option::is_none")]
18    pub cliff_years: Option<i32>,
19    /// EquityPlanID is the plan the grant draws from.
20    #[serde(rename = "equityPlanId", skip_serializing_if = "Option::is_none")]
21    pub equity_plan_id: Option<String>,
22    /// EquityPlanName is that plan's name.
23    #[serde(rename = "equityPlanName", skip_serializing_if = "Option::is_none")]
24    pub equity_plan_name: Option<String>,
25    /// ExercisePrice is the strike price per share.
26    #[serde(rename = "exercisePrice", skip_serializing_if = "Option::is_none")]
27    pub exercise_price: Option<f64>,
28    /// ExpirationDate is the ISO date the grant expires.
29    #[serde(rename = "expirationDate", skip_serializing_if = "Option::is_none")]
30    pub expiration_date: Option<String>,
31    /// GrantID is the grant number, unique within the company.
32    #[serde(rename = "grantId", skip_serializing_if = "Option::is_none")]
33    pub grant_id: Option<String>,
34    /// ID is the option id.
35    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
36    pub id: Option<String>,
37    /// IssueDate is the ISO date the grant was issued.
38    #[serde(rename = "issueDate", skip_serializing_if = "Option::is_none")]
39    pub issue_date: Option<String>,
40    /// Quantity is how many shares the grant covers.
41    #[serde(rename = "quantity", skip_serializing_if = "Option::is_none")]
42    pub quantity: Option<i32>,
43    /// StakeholderID is the grantee.
44    #[serde(rename = "stakeholderId", skip_serializing_if = "Option::is_none")]
45    pub stakeholder_id: Option<String>,
46    /// StakeholderName is that grantee's name.
47    #[serde(rename = "stakeholderName", skip_serializing_if = "Option::is_none")]
48    pub stakeholder_name: Option<String>,
49    /// Status is the grant's state, e.g. DRAFT, ACTIVE, EXERCISED, EXPIRED or CANCELLED. Only non-terminal grants dilute the cap table.
50    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
51    pub status: Option<String>,
52    /// Type is the grant kind, ISO or NSO.
53    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
54    pub r#type: Option<String>,
55    /// VestingYears is the total vesting period in years.
56    #[serde(rename = "vestingYears", skip_serializing_if = "Option::is_none")]
57    pub vesting_years: Option<i32>,
58}
59
60impl CaptableOption {
61    pub fn new() -> CaptableOption {
62        CaptableOption {
63            cliff_years: None,
64            equity_plan_id: None,
65            equity_plan_name: None,
66            exercise_price: None,
67            expiration_date: None,
68            grant_id: None,
69            id: None,
70            issue_date: None,
71            quantity: None,
72            stakeholder_id: None,
73            stakeholder_name: None,
74            status: None,
75            r#type: None,
76            vesting_years: None,
77        }
78    }
79}
80