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




#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetCurrenciesResponse200DataInner {
    /// The ID of the currency
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    /// The code of the currency
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<String>,
    /// The name of the currency
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// The amount of decimal points of the currency
    #[serde(rename = "decimal_points", skip_serializing_if = "Option::is_none")]
    pub decimal_points: Option<i32>,
    /// The symbol of the currency
    #[serde(rename = "symbol", skip_serializing_if = "Option::is_none")]
    pub symbol: Option<String>,
    /// Whether the currency is active or not
    #[serde(rename = "active_flag", skip_serializing_if = "Option::is_none")]
    pub active_flag: Option<bool>,
    /// Whether the currency is a custom one or not
    #[serde(rename = "is_custom_flag", skip_serializing_if = "Option::is_none")]
    pub is_custom_flag: Option<bool>,
}

impl GetCurrenciesResponse200DataInner {
    pub fn new() -> GetCurrenciesResponse200DataInner {
        GetCurrenciesResponse200DataInner {
            id: None,
            code: None,
            name: None,
            decimal_points: None,
            symbol: None,
            active_flag: None,
            is_custom_flag: None,
        }
    }
}