proxycurl_linkedin_rs/models/
linkedin_school.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 LinkedinSchool {
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}
134
135impl LinkedinSchool {
136    pub fn new() -> LinkedinSchool {
137        LinkedinSchool {
138            linkedin_internal_id: None,
139            description: None,
140            website: None,
141            industry: None,
142            company_size: None,
143            company_size_on_linkedin: None,
144            hq: None,
145            company_type: None,
146            founded_year: None,
147            specialities: None,
148            locations: None,
149            name: None,
150            tagline: None,
151            universal_name_id: None,
152            profile_pic_url: None,
153            background_cover_image_url: None,
154            search_id: None,
155            similar_companies: None,
156            affiliated_companies: None,
157            updates: None,
158            follower_count: None,
159            social_networking_services: None,
160        }
161    }
162}