pipedrive_rs/models/
webhooks_bad_request_response.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 WebhooksBadRequestResponse {
16    /// If the response is successful or not
17    #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
18    pub success: Option<bool>,
19    /// The status of the response
20    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
21    pub status: Option<String>,
22    /// List of errors
23    #[serde(rename = "errors", skip_serializing_if = "Option::is_none")]
24    pub errors: Option<serde_json::Value>,
25}
26
27impl WebhooksBadRequestResponse {
28    pub fn new() -> WebhooksBadRequestResponse {
29        WebhooksBadRequestResponse {
30            success: None,
31            status: None,
32            errors: None,
33        }
34    }
35}
36
37