Skip to main content

hanzo_client/models/
round_input.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 RoundInput {
16    /// Name is the round's name on the cap table, e.g. \"Seed\". Required.
17    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
18    pub name: Option<String>,
19    /// PreMoneyValuation is the valuation the round prices off, before the new money.
20    #[serde(rename = "preMoneyValuation", skip_serializing_if = "Option::is_none")]
21    pub pre_money_valuation: Option<f64>,
22    /// PricePerShare is the per-share price of a priced round.
23    #[serde(rename = "pricePerShare", skip_serializing_if = "Option::is_none")]
24    pub price_per_share: Option<f64>,
25    /// RoundType is PRICED, SAFE or CONVERTIBLE_NOTE. Defaults to PRICED.
26    #[serde(rename = "roundType", skip_serializing_if = "Option::is_none")]
27    pub round_type: Option<String>,
28    /// ShareClassID is the cap table's share class the round issues into.
29    #[serde(rename = "shareClassId", skip_serializing_if = "Option::is_none")]
30    pub share_class_id: Option<String>,
31    /// TargetAmount is the amount the round is raising, recorded verbatim on the canonical cap table's rounds.create contract.
32    #[serde(rename = "targetAmount", skip_serializing_if = "Option::is_none")]
33    pub target_amount: Option<f64>,
34}
35
36impl RoundInput {
37    pub fn new() -> RoundInput {
38        RoundInput {
39            name: None,
40            pre_money_valuation: None,
41            price_per_share: None,
42            round_type: None,
43            share_class_id: None,
44            target_amount: None,
45        }
46    }
47}
48