proxycurl_linkedin_rs/models/
experience.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 Experience {
13    #[serde(rename = "starts_at", skip_serializing_if = "Option::is_none")]
14    pub starts_at: Option<Box<crate::models::Date>>,
15    #[serde(rename = "ends_at", skip_serializing_if = "Option::is_none")]
16    pub ends_at: Option<Box<crate::models::Date>>,
17    /// The company's display name.
18    #[serde(
19        rename = "company",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub company: Option<Option<String>>,
25    ///              The company's profile URL.             If present, could be used with              [Company Profile Endpoint](#company-api-company-profile-endpoint) for more info.         
26    #[serde(
27        rename = "company_linkedin_profile_url",
28        default,
29        with = "::serde_with::rust::double_option",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub company_linkedin_profile_url: Option<Option<String>>,
33    #[serde(
34        rename = "title",
35        default,
36        with = "::serde_with::rust::double_option",
37        skip_serializing_if = "Option::is_none"
38    )]
39    pub title: Option<Option<String>>,
40    #[serde(
41        rename = "description",
42        default,
43        with = "::serde_with::rust::double_option",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub description: Option<Option<String>>,
47    #[serde(
48        rename = "location",
49        default,
50        with = "::serde_with::rust::double_option",
51        skip_serializing_if = "Option::is_none"
52    )]
53    pub location: Option<Option<String>>,
54    /// URL of the logo of the organisation.
55    #[serde(
56        rename = "logo_url",
57        default,
58        with = "::serde_with::rust::double_option",
59        skip_serializing_if = "Option::is_none"
60    )]
61    pub logo_url: Option<Option<String>>,
62}
63
64impl Experience {
65    pub fn new() -> Experience {
66        Experience {
67            starts_at: None,
68            ends_at: None,
69            company: None,
70            company_linkedin_profile_url: None,
71            title: None,
72            description: None,
73            location: None,
74            logo_url: None,
75        }
76    }
77}