proxycurl_linkedin_rs/models/
person_extra.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 PersonExtra {
13    /// This profile's Github account.
14    #[serde(
15        rename = "github_profile_id",
16        default,
17        with = "::serde_with::rust::double_option",
18        skip_serializing_if = "Option::is_none"
19    )]
20    pub github_profile_id: Option<Option<String>>,
21    /// This profile's Facebook account.
22    #[serde(
23        rename = "facebook_profile_id",
24        default,
25        with = "::serde_with::rust::double_option",
26        skip_serializing_if = "Option::is_none"
27    )]
28    pub facebook_profile_id: Option<Option<String>>,
29    /// This profile's twitter account.
30    #[serde(
31        rename = "twitter_profile_id",
32        default,
33        with = "::serde_with::rust::double_option",
34        skip_serializing_if = "Option::is_none"
35    )]
36    pub twitter_profile_id: Option<Option<String>>,
37}
38
39impl PersonExtra {
40    pub fn new() -> PersonExtra {
41        PersonExtra {
42            github_profile_id: None,
43            facebook_profile_id: None,
44            twitter_profile_id: None,
45        }
46    }
47}