proxycurl_linkedin_rs/models/
certification.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 Certification {
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    /// Name of the course or program.
18    #[serde(
19        rename = "name",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub name: Option<Option<String>>,
25    #[serde(
26        rename = "license_number",
27        default,
28        with = "::serde_with::rust::double_option",
29        skip_serializing_if = "Option::is_none"
30    )]
31    pub license_number: Option<Option<String>>,
32    #[serde(
33        rename = "display_source",
34        default,
35        with = "::serde_with::rust::double_option",
36        skip_serializing_if = "Option::is_none"
37    )]
38    pub display_source: Option<Option<String>>,
39    /// The organisation body issuing this certificate.
40    #[serde(
41        rename = "authority",
42        default,
43        with = "::serde_with::rust::double_option",
44        skip_serializing_if = "Option::is_none"
45    )]
46    pub authority: Option<Option<String>>,
47    #[serde(
48        rename = "url",
49        default,
50        with = "::serde_with::rust::double_option",
51        skip_serializing_if = "Option::is_none"
52    )]
53    pub url: Option<Option<String>>,
54}
55
56impl Certification {
57    pub fn new() -> Certification {
58        Certification {
59            starts_at: None,
60            ends_at: None,
61            name: None,
62            license_number: None,
63            display_source: None,
64            authority: None,
65            url: None,
66        }
67    }
68}