pipedrive_rs/models/
update_lead_request_value.rs

1/*
2 * Pipedrive API v1
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// UpdateLeadRequestValue : The potential value of the lead
12
13
14
15#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
16pub struct UpdateLeadRequestValue {
17    #[serde(rename = "amount")]
18    pub amount: f32,
19    #[serde(rename = "currency")]
20    pub currency: String,
21}
22
23impl UpdateLeadRequestValue {
24    /// The potential value of the lead
25    pub fn new(amount: f32, currency: String) -> UpdateLeadRequestValue {
26        UpdateLeadRequestValue {
27            amount,
28            currency,
29        }
30    }
31}
32
33