proxycurl_linkedin_rs/models/
date.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 Date {
13    #[serde(
14        rename = "day",
15        default,
16        with = "::serde_with::rust::double_option",
17        skip_serializing_if = "Option::is_none"
18    )]
19    pub day: Option<Option<i32>>,
20    #[serde(
21        rename = "month",
22        default,
23        with = "::serde_with::rust::double_option",
24        skip_serializing_if = "Option::is_none"
25    )]
26    pub month: Option<Option<i32>>,
27    #[serde(rename = "year", skip_serializing_if = "Option::is_none")]
28    pub year: Option<i32>,
29}
30
31impl Date {
32    pub fn new() -> Date {
33        Date {
34            day: None,
35            month: None,
36            year: None,
37        }
38    }
39}