amazon-spapi 2.0.3

A Rust client library for Amazon Selling Partner API (SP-API)
Documentation
/*
 * Selling Partner API for Pricing
 *
 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
 *
 * The version of the OpenAPI document: v0
 * 
 * Generated by: https://openapi-generator.tech
 */

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

/// Errors : A list of error responses returned when a request is unsuccessful.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Errors {
    /// A list of error responses returned when a request is unsuccessful.
    #[serde(rename = "errors")]
    pub errors: Vec<models::product_pricing_v0::Error>,
}

impl Errors {
    /// A list of error responses returned when a request is unsuccessful.
    pub fn new(errors: Vec<models::product_pricing_v0::Error>) -> Errors {
        Errors {
            errors,
        }
    }
}