proxycurl_linkedin_rs/models/
job_profile.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 JobProfile {
13    ///          The internal ID representation of this job that LinkedIn has for this job.         
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    ///          Description of the posted job.         
22    #[serde(
23        rename = "job_description",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub job_description: Option<Option<String>>,
29    ///          The URL to apply for this job.         
30    #[serde(
31        rename = "apply_url",
32        default,
33        with = "::serde_with::rust::double_option",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub apply_url: Option<Option<String>>,
37    ///          Title of the posted job.         
38    #[serde(
39        rename = "title",
40        default,
41        with = "::serde_with::rust::double_option",
42        skip_serializing_if = "Option::is_none"
43    )]
44    pub title: Option<Option<String>>,
45    #[serde(rename = "location", skip_serializing_if = "Option::is_none")]
46    pub location: Option<Box<crate::models::JobLocation>>,
47    #[serde(rename = "company", skip_serializing_if = "Option::is_none")]
48    pub company: Option<Box<crate::models::JobCompany>>,
49    ///          The seniority level for this role.         
50    #[serde(
51        rename = "seniority_level",
52        default,
53        with = "::serde_with::rust::double_option",
54        skip_serializing_if = "Option::is_none"
55    )]
56    pub seniority_level: Option<Option<String>>,
57    ///          A list of industries that the company which posted this job lies in.         
58    #[serde(rename = "industry", skip_serializing_if = "Option::is_none")]
59    pub industry: Option<Vec<String>>,
60    ///          Type of employment.         
61    #[serde(
62        rename = "employment_type",
63        default,
64        with = "::serde_with::rust::double_option",
65        skip_serializing_if = "Option::is_none"
66    )]
67    pub employment_type: Option<Option<String>>,
68    ///          A list of job functions that this role is expected to cover.         
69    #[serde(rename = "job_functions", skip_serializing_if = "Option::is_none")]
70    pub job_functions: Option<Vec<String>>,
71    ///          Total applicants for this job so far.         
72    #[serde(
73        rename = "total_applicants",
74        default,
75        with = "::serde_with::rust::double_option",
76        skip_serializing_if = "Option::is_none"
77    )]
78    pub total_applicants: Option<Option<i32>>,
79}
80
81impl JobProfile {
82    pub fn new() -> JobProfile {
83        JobProfile {
84            linkedin_internal_id: None,
85            job_description: None,
86            apply_url: None,
87            title: None,
88            location: None,
89            company: None,
90            seniority_level: None,
91            industry: None,
92            employment_type: None,
93            job_functions: None,
94            total_applicants: None,
95        }
96    }
97}