pub struct Restriction {
pub catalogues: RestrictionCatalogues,
pub restriction_type: RestrictionType,
pub catalogue_strs: Vec<String>,
pub countries_allowed: Option<Vec<String>>,
pub countries_forbidden: Option<Vec<String>>,
}Fields§
§catalogues: RestrictionCatalogues§restriction_type: RestrictionType§catalogue_strs: Vec<String>§countries_allowed: Option<Vec<String>>§countries_forbidden: Option<Vec<String>>Trait Implementations§
Source§impl Clone for Restriction
impl Clone for Restriction
Source§fn clone(&self) -> Restriction
fn clone(&self) -> Restriction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Restriction
impl Debug for Restriction
Source§impl From<&Restriction> for Restriction
impl From<&Restriction> for Restriction
Source§fn from(restriction: &RestrictionMessage) -> Self
fn from(restriction: &RestrictionMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Restriction
impl RefUnwindSafe for Restriction
impl Send for Restriction
impl Sync for Restriction
impl Unpin for Restriction
impl UnwindSafe for Restriction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more