pipedrive-rs 0.1.0

Rust PipedriveClient
Documentation
/*
 * Pipedrive API v1
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

/// GetNotesResponse200DataInnerUser : The user who created the note



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetNotesResponse200DataInnerUser {
    /// The email of the note creator
    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
    pub email: Option<String>,
    /// The URL of the note creator avatar picture
    #[serde(rename = "icon_url", skip_serializing_if = "Option::is_none")]
    pub icon_url: Option<String>,
    /// Whether the note is created by you or not
    #[serde(rename = "is_you", skip_serializing_if = "Option::is_none")]
    pub is_you: Option<bool>,
    /// The name of the note creator
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
}

impl GetNotesResponse200DataInnerUser {
    /// The user who created the note
    pub fn new() -> GetNotesResponse200DataInnerUser {
        GetNotesResponse200DataInnerUser {
            email: None,
            icon_url: None,
            is_you: None,
            name: None,
        }
    }
}