/*
 * Thalex RPC API
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// VerifyWithdrawalRpcResultError : In case such withdrawal is not possible, this object contains an error code and an error message describing why. Otherwise, `error` is returned as `null`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct VerifyWithdrawalRpcResultError {
    /// Error code.
    #[serde(rename = "code", skip_serializing_if = "Option::is_none")]
    pub code: Option<rust_decimal::Decimal>,
    /// Error message.
    #[serde(rename = "message", skip_serializing_if = "Option::is_none")]
    pub message: Option<String>,
}

impl VerifyWithdrawalRpcResultError {
    /// In case such withdrawal is not possible, this object contains an error code and an error message describing why. Otherwise, `error` is returned as `null`.
    pub fn new() -> VerifyWithdrawalRpcResultError {
        VerifyWithdrawalRpcResultError {
            code: None,
            message: None,
        }
    }
}
