/*
 * 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};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DoubleSidedQuoteResult {
    /// The number of individual quote sides failed to insert.
    #[serde(rename = "n_fail")]
    pub n_fail: rust_decimal::Decimal,
    /// The number of individual quote sides successfully replaced or deleted.
    #[serde(rename = "n_success")]
    pub n_success: rust_decimal::Decimal,
    /// A collection of errors assembled during execution.
    #[serde(rename = "errors")]
    pub errors: Vec<models::DoubleSidedQuoteResultErrorsInner>,
}

impl DoubleSidedQuoteResult {
    pub fn new(
        n_fail: rust_decimal::Decimal,
        n_success: rust_decimal::Decimal,
        errors: Vec<models::DoubleSidedQuoteResultErrorsInner>,
    ) -> DoubleSidedQuoteResult {
        DoubleSidedQuoteResult {
            n_fail,
            n_success,
            errors,
        }
    }
}
