btcpay_client/models/problem_details.rs
1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// ProblemDetails : Description of an error happening during processing of the request
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ProblemDetails {
17 /// An error code describing the error
18 #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
19 pub code: Option<String>,
20 /// User friendly error message about the error
21 #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
22 pub message: Option<String>,
23}
24
25impl ProblemDetails {
26 /// Description of an error happening during processing of the request
27 pub fn new() -> ProblemDetails {
28 ProblemDetails {
29 code: None,
30 message: None,
31 }
32 }
33}
34
35