pub struct Restriction {
pub marketplace_id: String,
pub condition_type: Option<ConditionType>,
pub reasons: Option<Vec<Reason>>,
}Expand description
Restriction : A listing restriction, optionally qualified by a condition, with a list of reasons for the restriction.
Fields
marketplace_id: StringA marketplace identifier. Identifies the Amazon marketplace where the restriction is enforced.
condition_type: Option<ConditionType>The condition that applies to the restriction.
reasons: Option<Vec<Reason>>A list of reasons for the restriction.
Implementations
sourceimpl Restriction
impl Restriction
sourcepub fn new(marketplace_id: String) -> Restriction
pub fn new(marketplace_id: String) -> Restriction
A listing restriction, optionally qualified by a condition, with a list of reasons for the restriction.
Trait Implementations
sourceimpl Clone for Restriction
impl Clone for Restriction
sourcefn clone(&self) -> Restriction
fn clone(&self) -> Restriction
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for Restriction
impl Debug for Restriction
sourceimpl Default for Restriction
impl Default for Restriction
sourcefn default() -> Restriction
fn default() -> Restriction
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for Restriction
impl<'de> Deserialize<'de> for Restriction
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<Restriction> for Restriction
impl PartialEq<Restriction> for Restriction
sourcefn eq(&self, other: &Restriction) -> bool
fn eq(&self, other: &Restriction) -> bool
sourceimpl Serialize for Restriction
impl Serialize for Restriction
impl StructuralPartialEq for Restriction
Auto Trait Implementations
impl RefUnwindSafe for Restriction
impl Send for Restriction
impl Sync for Restriction
impl Unpin for Restriction
impl UnwindSafe for Restriction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more