pub struct ContentRestrictions {
pub profile_id: MediaProfileId,
pub maximum_certification: Option<String>,
pub disallowed_genres: Vec<String>,
pub disallowed_themes: Vec<String>,
pub allow_unrated: bool,
}Expand description
Restrictions applied before recommendation ranking, not soft preferences.
Fields§
§profile_id: MediaProfileId§maximum_certification: Option<String>Maximum certification accepted for this profile (provider-normalized value).
disallowed_genres: Vec<String>Explicitly prohibited content genres.
disallowed_themes: Vec<String>Explicitly prohibited themes matched against normalized title/overview metadata.
allow_unrated: boolWhether titles without a known certification may pass the restriction check.
Implementations§
Source§impl ContentRestrictions
impl ContentRestrictions
pub fn new(profile_id: MediaProfileId) -> Self
Trait Implementations§
Source§impl Clone for ContentRestrictions
impl Clone for ContentRestrictions
Source§impl Debug for ContentRestrictions
impl Debug for ContentRestrictions
Source§impl Default for ContentRestrictions
impl Default for ContentRestrictions
Source§impl<'de> Deserialize<'de> for ContentRestrictionswhere
ContentRestrictions: Default,
impl<'de> Deserialize<'de> for ContentRestrictionswhere
ContentRestrictions: Default,
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
impl Eq for ContentRestrictions
Source§impl PartialEq for ContentRestrictions
impl PartialEq for ContentRestrictions
Source§impl Serialize for ContentRestrictions
impl Serialize for ContentRestrictions
impl StructuralPartialEq for ContentRestrictions
Auto Trait Implementations§
impl Freeze for ContentRestrictions
impl RefUnwindSafe for ContentRestrictions
impl Send for ContentRestrictions
impl Sync for ContentRestrictions
impl Unpin for ContentRestrictions
impl UnsafeUnpin for ContentRestrictions
impl UnwindSafe for ContentRestrictions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.