amazon_spapi/models/product_pricing_v0/errors.rs
1/*
2 * Selling Partner API for Pricing
3 *
4 * The Selling Partner API for Pricing helps you programmatically retrieve product pricing and offer information for Amazon Marketplace products.
5 *
6 * The version of the OpenAPI document: v0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// Errors : A list of error responses returned when a request is unsuccessful.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct Errors {
17 /// A list of error responses returned when a request is unsuccessful.
18 #[serde(rename = "errors")]
19 pub errors: Vec<models::product_pricing_v0::Error>,
20}
21
22impl Errors {
23 /// A list of error responses returned when a request is unsuccessful.
24 pub fn new(errors: Vec<models::product_pricing_v0::Error>) -> Errors {
25 Errors {
26 errors,
27 }
28 }
29}
30