#[non_exhaustive]pub enum RestrictionReason {
Market,
Product,
Explicit,
Unknown,
}Expand description
The reason for restriction on content.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Market
A restriction set because of the market of a user.
Product
A restriction set because of the user’s subscription type.
Explicit
A restriction set because the content is explicit, and the user settings are set so that explicit conent can’t be played.
Unknown
Any other type of restriction, as more may be added in the future.
Trait Implementations§
Source§impl Clone for RestrictionReason
impl Clone for RestrictionReason
Source§fn clone(&self) -> RestrictionReason
fn clone(&self) -> RestrictionReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RestrictionReason
impl Debug for RestrictionReason
Source§impl<'de> Deserialize<'de> for RestrictionReason
impl<'de> Deserialize<'de> for RestrictionReason
Source§fn 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
Source§impl PartialEq for RestrictionReason
impl PartialEq for RestrictionReason
Source§fn eq(&self, other: &RestrictionReason) -> bool
fn eq(&self, other: &RestrictionReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RestrictionReason
Auto Trait Implementations§
impl Freeze for RestrictionReason
impl RefUnwindSafe for RestrictionReason
impl Send for RestrictionReason
impl Sync for RestrictionReason
impl Unpin for RestrictionReason
impl UnsafeUnpin for RestrictionReason
impl UnwindSafe for RestrictionReason
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