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
 */

/// GetRoleResponse200AllOfAdditionalDataSettings : The settings for the role



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetRoleResponse200AllOfAdditionalDataSettings {
    /// The default visibility level of the deals for the role
    #[serde(rename = "deal_default_visibility", skip_serializing_if = "Option::is_none")]
    pub deal_default_visibility: Option<f32>,
    /// The default visibility level of the leads for the role
    #[serde(rename = "lead_default_visibility", skip_serializing_if = "Option::is_none")]
    pub lead_default_visibility: Option<f32>,
    /// The default visibility level of the organizations for the role
    #[serde(rename = "org_default_visibility", skip_serializing_if = "Option::is_none")]
    pub org_default_visibility: Option<f32>,
    /// The default visibility level of the people for the role
    #[serde(rename = "person_default_visibility", skip_serializing_if = "Option::is_none")]
    pub person_default_visibility: Option<f32>,
    /// The default visibility level of the products for the role
    #[serde(rename = "product_default_visibility", skip_serializing_if = "Option::is_none")]
    pub product_default_visibility: Option<f32>,
    /// The access level of the deals for the role (only for default role)
    #[serde(rename = "deal_access_level", skip_serializing_if = "Option::is_none")]
    pub deal_access_level: Option<f32>,
    /// The access level of the organizations for the role (only for default role)
    #[serde(rename = "org_access_level", skip_serializing_if = "Option::is_none")]
    pub org_access_level: Option<f32>,
    /// The access level of the people for the role (only for default role)
    #[serde(rename = "person_access_level", skip_serializing_if = "Option::is_none")]
    pub person_access_level: Option<f32>,
    /// The access level of the products for the role (only for default role)
    #[serde(rename = "product_access_level", skip_serializing_if = "Option::is_none")]
    pub product_access_level: Option<f32>,
}

impl GetRoleResponse200AllOfAdditionalDataSettings {
    /// The settings for the role
    pub fn new() -> GetRoleResponse200AllOfAdditionalDataSettings {
        GetRoleResponse200AllOfAdditionalDataSettings {
            deal_default_visibility: None,
            lead_default_visibility: None,
            org_default_visibility: None,
            person_default_visibility: None,
            product_default_visibility: None,
            deal_access_level: None,
            org_access_level: None,
            person_access_level: None,
            product_access_level: None,
        }
    }
}