proxycurl_linkedin_rs/models/
employee_count.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 EmployeeCount {
13    #[serde(rename = "total_employee", skip_serializing_if = "Option::is_none")]
14    pub total_employee: Option<i32>,
15    /// The scraped value of employee count of this company from it's LinkedIn profile. This value does not respect `employement_status` parameter. It will always return the curent employee count of this company from LinkedIn.
16    #[serde(
17        rename = "linkedin_employee_count",
18        default,
19        with = "::serde_with::rust::double_option",
20        skip_serializing_if = "Option::is_none"
21    )]
22    pub linkedin_employee_count: Option<Option<i32>>,
23    /// The total number of employees found in LinkDB for this company. This value is limited by pre-crawled LinkedIn profiles stored in [LinkDB](https://nubela.co/proxycurl/linkdb)
24    #[serde(
25        rename = "linkdb_employee_count",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub linkdb_employee_count: Option<i32>,
29    #[serde(rename = "regression_notice", skip_serializing_if = "Option::is_none")]
30    pub regression_notice: Option<String>,
31}
32
33impl EmployeeCount {
34    pub fn new() -> EmployeeCount {
35        EmployeeCount {
36            total_employee: None,
37            linkedin_employee_count: None,
38            linkdb_employee_count: None,
39            regression_notice: None,
40        }
41    }
42}