proxycurl_linkedin_rs/models/
project.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 Project {
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 project that has been or is currently being worked on.             
18    #[serde(
19        rename = "title",
20        default,
21        with = "::serde_with::rust::double_option",
22        skip_serializing_if = "Option::is_none"
23    )]
24    pub title: Option<Option<String>>,
25    /// Description of the project.
26    #[serde(
27        rename = "description",
28        default,
29        with = "::serde_with::rust::double_option",
30        skip_serializing_if = "Option::is_none"
31    )]
32    pub description: Option<Option<String>>,
33    /// A web location related to the project.
34    #[serde(
35        rename = "url",
36        default,
37        with = "::serde_with::rust::double_option",
38        skip_serializing_if = "Option::is_none"
39    )]
40    pub url: Option<Option<String>>,
41}
42
43impl Project {
44    pub fn new() -> Project {
45        Project {
46            starts_at: None,
47            ends_at: None,
48            title: None,
49            description: None,
50            url: None,
51        }
52    }
53}