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

/// AddRoleAssignmentResponse200AllOfData : The response data



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct AddRoleAssignmentResponse200AllOfData {
    /// The ID of the user that was added to the role
    #[serde(rename = "user_id", skip_serializing_if = "Option::is_none")]
    pub user_id: Option<i32>,
    /// The ID of the role the user was added to
    #[serde(rename = "role_id", skip_serializing_if = "Option::is_none")]
    pub role_id: Option<i32>,
}

impl AddRoleAssignmentResponse200AllOfData {
    /// The response data
    pub fn new() -> AddRoleAssignmentResponse200AllOfData {
        AddRoleAssignmentResponse200AllOfData {
            user_id: None,
            role_id: None,
        }
    }
}