pipedrive_rs/models/
unathorized_response.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UnathorizedResponse {
16 #[serde(rename = "success", skip_serializing_if = "Option::is_none")]
18 pub success: Option<bool>,
19 #[serde(rename = "error", skip_serializing_if = "Option::is_none")]
21 pub error: Option<String>,
22 #[serde(rename = "errorCode", skip_serializing_if = "Option::is_none")]
24 pub error_code: Option<i32>,
25}
26
27impl UnathorizedResponse {
28 pub fn new() -> UnathorizedResponse {
29 UnathorizedResponse {
30 success: None,
31 error: None,
32 error_code: None,
33 }
34 }
35}
36
37