btcpay_client/models/
validation_problem_details_inner.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/// ValidationProblemDetailsInner : A specific validation error on a json property
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct ValidationProblemDetailsInner {
17    /// The json path of the property which failed validation
18    #[serde(rename = "path", skip_serializing_if = "Option::is_none")]
19    pub path: Option<String>,
20    /// User friendly error message about the validation
21    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
22    pub message: Option<String>,
23}
24
25impl ValidationProblemDetailsInner {
26    /// A specific validation error on a json property
27    pub fn new() -> ValidationProblemDetailsInner {
28        ValidationProblemDetailsInner {
29            path: None,
30            message: None,
31        }
32    }
33}
34
35