pipedrive_rs/models/
call_log_response400.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
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CallLogResponse400 {
16    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
17    pub success: Option<bool>,
18    /// The description of the error
19    #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
20    pub error: Option<String>,
21    /// A message describing how to solve the problem
22    #[serde(rename = "error_info", skip_serializing_if = "Option::is_none")]
23    pub error_info: Option<String>,
24    #[serde(rename = "data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
25    pub data: Option<Option<serde_json::Value>>,
26    #[serde(rename = "additional_data", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
27    pub additional_data: Option<Option<serde_json::Value>>,
28}
29
30impl CallLogResponse400 {
31    pub fn new() -> CallLogResponse400 {
32        CallLogResponse400 {
33            success: None,
34            error: None,
35            error_info: None,
36            data: None,
37            additional_data: None,
38        }
39    }
40}
41
42