pub struct ProfilePreferences {
pub profile_id: MediaProfileId,
pub liked_genres: Vec<String>,
pub disliked_genres: Vec<String>,
pub preferred_languages: Vec<String>,
pub liked_themes: Vec<String>,
pub disliked_themes: Vec<String>,
}Expand description
User-maintained preferences; synchronized viewing activity is not stored here.
Fields§
§profile_id: MediaProfileId§liked_genres: Vec<String>§disliked_genres: Vec<String>§preferred_languages: Vec<String>§liked_themes: Vec<String>§disliked_themes: Vec<String>Implementations§
Source§impl ProfilePreferences
impl ProfilePreferences
pub fn new(profile_id: MediaProfileId) -> Self
Trait Implementations§
Source§impl Clone for ProfilePreferences
impl Clone for ProfilePreferences
Source§impl Debug for ProfilePreferences
impl Debug for ProfilePreferences
Source§impl Default for ProfilePreferences
impl Default for ProfilePreferences
Source§impl<'de> Deserialize<'de> for ProfilePreferenceswhere
ProfilePreferences: Default,
impl<'de> Deserialize<'de> for ProfilePreferenceswhere
ProfilePreferences: 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 ProfilePreferences
Source§impl PartialEq for ProfilePreferences
impl PartialEq for ProfilePreferences
Source§impl Serialize for ProfilePreferences
impl Serialize for ProfilePreferences
impl StructuralPartialEq for ProfilePreferences
Auto Trait Implementations§
impl Freeze for ProfilePreferences
impl RefUnwindSafe for ProfilePreferences
impl Send for ProfilePreferences
impl Sync for ProfilePreferences
impl Unpin for ProfilePreferences
impl UnsafeUnpin for ProfilePreferences
impl UnwindSafe for ProfilePreferences
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.