tinkoff_api/models/
error_payload.rs

1/*
2 * OpenAPI
3 *
4 * tinkoff.ru/invest OpenAPI.
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * Contact: al.a.volkov@tinkoff.ru
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct ErrorPayload {
16    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
17    pub message: Option<String>,
18    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
19    pub code: Option<String>,
20}
21
22impl ErrorPayload {
23    pub fn new() -> ErrorPayload {
24        ErrorPayload {
25            message: None,
26            code: None,
27        }
28    }
29}
30
31