1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Selling Partner API for Listings Restrictions
 *
 * The Selling Partner API for Listings Restrictions provides programmatic access to restrictions on Amazon catalog listings.  For more information, see the [Listings Restrictions API Use Case Guide](doc:listings-restrictions-api-v2021-08-01-use-case-guide).
 *
 * The version of the OpenAPI document: 2021-08-01
 * 
 * Generated by: https://openapi-generator.tech
 */

/// RestrictionList : A list of restrictions for the specified Amazon catalog item.



#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RestrictionList {
    #[serde(default, rename = "restrictions")]
    pub restrictions: Vec<crate::models::Restriction>,
}

impl RestrictionList {
    /// A list of restrictions for the specified Amazon catalog item.
    pub fn new(restrictions: Vec<crate::models::Restriction>) -> RestrictionList {
        RestrictionList {
            restrictions,
        }
    }
}