proxycurl_linkedin_rs/models/
job_location.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 JobLocation {
13    ///          Full country name.         
14    #[serde(
15        rename = "country",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub country: Option<Option<String>>,
21    ///          Region.         
22    #[serde(
23        rename = "region",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub region: Option<Option<String>>,
29    ///          The city for the job.         
30    #[serde(
31        rename = "city",
32        default,
33        with = "::serde_with::rust::double_option",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub city: Option<Option<String>>,
37    ///          Postal code of the business location for the job.         
38    #[serde(
39        rename = "postal_code",
40        default,
41        with = "::serde_with::rust::double_option",
42        skip_serializing_if = "Option::is_none"
43    )]
44    pub postal_code: Option<Option<String>>,
45    ///          Latitude coordinates of the business location for the job.         
46    #[serde(
47        rename = "latitude",
48        default,
49        with = "::serde_with::rust::double_option",
50        skip_serializing_if = "Option::is_none"
51    )]
52    pub latitude: Option<Option<f32>>,
53    ///          Longitude coordinates of the business location for the job.         
54    #[serde(
55        rename = "longitude",
56        default,
57        with = "::serde_with::rust::double_option",
58        skip_serializing_if = "Option::is_none"
59    )]
60    pub longitude: Option<Option<f32>>,
61    ///          Street address of the business location for the job.         
62    #[serde(
63        rename = "street",
64        default,
65        with = "::serde_with::rust::double_option",
66        skip_serializing_if = "Option::is_none"
67    )]
68    pub street: Option<Option<String>>,
69}
70
71impl JobLocation {
72    pub fn new() -> JobLocation {
73        JobLocation {
74            country: None,
75            region: None,
76            city: None,
77            postal_code: None,
78            latitude: None,
79            longitude: None,
80            street: None,
81        }
82    }
83}