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

/// GetLeadsResponse200DataInnerValue : The potential value of the lead



#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetLeadsResponse200DataInnerValue {
    #[serde(rename = "amount")]
    pub amount: f32,
    #[serde(rename = "currency")]
    pub currency: String,
}

impl GetLeadsResponse200DataInnerValue {
    /// The potential value of the lead
    pub fn new(amount: f32, currency: String) -> GetLeadsResponse200DataInnerValue {
        GetLeadsResponse200DataInnerValue {
            amount,
            currency,
        }
    }
}