proxycurl_linkedin_rs/models/
funding.rs

1/*
2 * Proxycurl API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct Funding {
13    /// Type of funding
14    #[serde(
15        rename = "funding_type",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub funding_type: Option<Option<String>>,
21    /// Amount of money raised
22    #[serde(
23        rename = "money_raised",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub money_raised: Option<Option<i32>>,
29    #[serde(rename = "announced_date", skip_serializing_if = "Option::is_none")]
30    pub announced_date: Option<Box<crate::models::Date>>,
31    /// Number of investors in this round
32    #[serde(
33        rename = "number_of_investor",
34        default,
35        with = "::serde_with::rust::double_option",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub number_of_investor: Option<Option<i32>>,
39    #[serde(
40        rename = "investor_list",
41        default,
42        with = "::serde_with::rust::double_option",
43        skip_serializing_if = "Option::is_none"
44    )]
45    pub investor_list: Option<Option<Vec<crate::models::Investor>>>,
46}
47
48impl Funding {
49    pub fn new() -> Funding {
50        Funding {
51            funding_type: None,
52            money_raised: None,
53            announced_date: None,
54            number_of_investor: None,
55            investor_list: None,
56        }
57    }
58}