proxycurl_linkedin_rs/models/
job_list_entry.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 JobListEntry {
13    ///          The name of the company that posted this job.         
14    #[serde(
15        rename = "company",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub company: Option<Option<String>>,
21    ///          The LinkedIn Company Profile URL that posted this job.         
22    #[serde(
23        rename = "company_url",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub company_url: Option<Option<String>>,
29    ///          Job title of the posted job.         
30    #[serde(
31        rename = "job_title",
32        default,
33        with = "::serde_with::rust::double_option",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub job_title: Option<Option<String>>,
37    ///          Job Profile URL. You can fetch details about this job using this URL via the [Job Profile API Endpoint](https://nubela.co/proxycurl/docs#jobs-api-job-profile-endpoint).         
38    #[serde(
39        rename = "job_url",
40        default,
41        with = "::serde_with::rust::double_option",
42        skip_serializing_if = "Option::is_none"
43    )]
44    pub job_url: Option<Option<String>>,
45    ///          The date that this job was listed.         
46    #[serde(
47        rename = "list_date",
48        default,
49        with = "::serde_with::rust::double_option",
50        skip_serializing_if = "Option::is_none"
51    )]
52    pub list_date: Option<Option<String>>,
53    ///          The job location.         
54    #[serde(
55        rename = "location",
56        default,
57        with = "::serde_with::rust::double_option",
58        skip_serializing_if = "Option::is_none"
59    )]
60    pub location: Option<Option<String>>,
61}
62
63impl JobListEntry {
64    pub fn new() -> JobListEntry {
65        JobListEntry {
66            company: None,
67            company_url: None,
68            job_title: None,
69            job_url: None,
70            list_date: None,
71            location: None,
72        }
73    }
74}