proxycurl_linkedin_rs/models/
linkedin_company.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 LinkedinCompany {
13    ///          LinkedIn's Internal and immutable ID of this Company profile.         
14    #[serde(
15        rename = "linkedin_internal_id",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub linkedin_internal_id: Option<Option<String>>,
21    #[serde(
22        rename = "description",
23        default,
24        with = "::serde_with::rust::double_option",
25        skip_serializing_if = "Option::is_none"
26    )]
27    pub description: Option<Option<String>>,
28    #[serde(
29        rename = "website",
30        default,
31        with = "::serde_with::rust::double_option",
32        skip_serializing_if = "Option::is_none"
33    )]
34    pub website: Option<Option<String>>,
35    /// The `industry` attribute, found in a LinkedIn Company            profile, describes the industry in which the company operates.            The value of this attribute is an enumerator. [This CSV file            provides an exhaustive list of possible values for this attribute]            (https://drive.google.com/file/d/12yvYLuru7CRv3wKOIkHs5Ldocz31gJSS/            view?usp=share_link).
36    #[serde(
37        rename = "industry",
38        default,
39        with = "::serde_with::rust::double_option",
40        skip_serializing_if = "Option::is_none"
41    )]
42    pub industry: Option<Option<String>>,
43    /// Sequenceed range of company head count
44    #[serde(rename = "company_size", skip_serializing_if = "Option::is_none")]
45    pub company_size: Option<Vec<crate::models::LinkedinCompanyCompanySizeInner>>,
46    #[serde(
47        rename = "company_size_on_linkedin",
48        default,
49        with = "::serde_with::rust::double_option",
50        skip_serializing_if = "Option::is_none"
51    )]
52    pub company_size_on_linkedin: Option<Option<i32>>,
53    #[serde(rename = "hq", skip_serializing_if = "Option::is_none")]
54    pub hq: Option<Box<crate::models::CompanyLocation>>,
55    #[serde(rename = "company_type", skip_serializing_if = "Option::is_none")]
56    pub company_type: Option<crate::models::CompanyType>,
57    #[serde(
58        rename = "founded_year",
59        default,
60        with = "::serde_with::rust::double_option",
61        skip_serializing_if = "Option::is_none"
62    )]
63    pub founded_year: Option<Option<i32>>,
64    ///                  A list of specialities.             
65    #[serde(rename = "specialities", skip_serializing_if = "Option::is_none")]
66    pub specialities: Option<Vec<String>>,
67    #[serde(rename = "locations", skip_serializing_if = "Option::is_none")]
68    pub locations: Option<Vec<crate::models::CompanyLocation>>,
69    #[serde(
70        rename = "name",
71        default,
72        with = "::serde_with::rust::double_option",
73        skip_serializing_if = "Option::is_none"
74    )]
75    pub name: Option<Option<String>>,
76    #[serde(
77        rename = "tagline",
78        default,
79        with = "::serde_with::rust::double_option",
80        skip_serializing_if = "Option::is_none"
81    )]
82    pub tagline: Option<Option<String>>,
83    #[serde(
84        rename = "universal_name_id",
85        default,
86        with = "::serde_with::rust::double_option",
87        skip_serializing_if = "Option::is_none"
88    )]
89    pub universal_name_id: Option<Option<String>>,
90    #[serde(
91        rename = "profile_pic_url",
92        default,
93        with = "::serde_with::rust::double_option",
94        skip_serializing_if = "Option::is_none"
95    )]
96    pub profile_pic_url: Option<Option<String>>,
97    #[serde(
98        rename = "background_cover_image_url",
99        default,
100        with = "::serde_with::rust::double_option",
101        skip_serializing_if = "Option::is_none"
102    )]
103    pub background_cover_image_url: Option<Option<String>>,
104    ///          Useable with [Job listing endpoint](#jobs-api-jobs-listing-endpoint)         
105    #[serde(
106        rename = "search_id",
107        default,
108        with = "::serde_with::rust::double_option",
109        skip_serializing_if = "Option::is_none"
110    )]
111    pub search_id: Option<Option<String>>,
112    #[serde(rename = "similar_companies", skip_serializing_if = "Option::is_none")]
113    pub similar_companies: Option<Vec<crate::models::SimilarCompany>>,
114    #[serde(
115        rename = "affiliated_companies",
116        skip_serializing_if = "Option::is_none"
117    )]
118    pub affiliated_companies: Option<Vec<crate::models::AffiliatedCompany>>,
119    #[serde(rename = "updates", skip_serializing_if = "Option::is_none")]
120    pub updates: Option<Vec<crate::models::CompanyUpdate>>,
121    #[serde(
122        rename = "follower_count",
123        default,
124        with = "::serde_with::rust::double_option",
125        skip_serializing_if = "Option::is_none"
126    )]
127    pub follower_count: Option<Option<i32>>,
128    #[serde(
129        rename = "social_networking_services",
130        skip_serializing_if = "Option::is_none"
131    )]
132    pub social_networking_services: Option<Vec<crate::models::CompanySocialNetworkingService>>,
133    #[serde(rename = "acquisitions", skip_serializing_if = "Option::is_none")]
134    pub acquisitions: Option<Box<crate::models::Acquisition>>,
135    #[serde(
136        rename = "exit_data",
137        default,
138        with = "::serde_with::rust::double_option",
139        skip_serializing_if = "Option::is_none"
140    )]
141    pub exit_data: Option<Option<Vec<crate::models::Exit>>>,
142    #[serde(rename = "extra", skip_serializing_if = "Option::is_none")]
143    pub extra: Option<Box<crate::models::CompanyDetails>>,
144    /// Company Funding data when `funding_data=include`
145    #[serde(
146        rename = "funding_data",
147        default,
148        with = "::serde_with::rust::double_option",
149        skip_serializing_if = "Option::is_none"
150    )]
151    pub funding_data: Option<Option<Vec<crate::models::Funding>>>,
152    /// The `categories` attribute is fetched from the                 company's Crunchbase profile. Values for this attribute are                 free-form text, and there is no exhaustive list of categories.                Consider the categories attribute as \"hints\" regarding the                 products or services offered by the company.
153    #[serde(
154        rename = "categories",
155        default,
156        with = "::serde_with::rust::double_option",
157        skip_serializing_if = "Option::is_none"
158    )]
159    pub categories: Option<Option<Vec<String>>>,
160}
161
162impl LinkedinCompany {
163    pub fn new() -> LinkedinCompany {
164        LinkedinCompany {
165            linkedin_internal_id: None,
166            description: None,
167            website: None,
168            industry: None,
169            company_size: None,
170            company_size_on_linkedin: None,
171            hq: None,
172            company_type: None,
173            founded_year: None,
174            specialities: None,
175            locations: None,
176            name: None,
177            tagline: None,
178            universal_name_id: None,
179            profile_pic_url: None,
180            background_cover_image_url: None,
181            search_id: None,
182            similar_companies: None,
183            affiliated_companies: None,
184            updates: None,
185            follower_count: None,
186            social_networking_services: None,
187            acquisitions: None,
188            exit_data: None,
189            extra: None,
190            funding_data: None,
191            categories: None,
192        }
193    }
194}