pub struct MediaRecommendation {
pub item: MediaItem,
pub score: i32,
pub reasons: Vec<String>,
pub offers: Vec<StreamingOffer>,
pub watched_by: Vec<MediaProfileId>,
pub history_unknown_for: Vec<MediaProfileId>,
}Expand description
One ranked candidate with the evidence used to recommend it.
Fields§
§item: MediaItem§score: i32Deterministic weighted score; higher is better.
reasons: Vec<String>§offers: Vec<StreamingOffer>§watched_by: Vec<MediaProfileId>§history_unknown_for: Vec<MediaProfileId>Profiles whose history is incomplete, so watched exclusion is uncertain.
Trait Implementations§
Source§impl Clone for MediaRecommendation
impl Clone for MediaRecommendation
Source§impl Debug for MediaRecommendation
impl Debug for MediaRecommendation
Source§impl<'de> Deserialize<'de> for MediaRecommendation
impl<'de> Deserialize<'de> for MediaRecommendation
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 MediaRecommendation
impl PartialEq for MediaRecommendation
Source§impl Serialize for MediaRecommendation
impl Serialize for MediaRecommendation
impl StructuralPartialEq for MediaRecommendation
Auto Trait Implementations§
impl Freeze for MediaRecommendation
impl RefUnwindSafe for MediaRecommendation
impl Send for MediaRecommendation
impl Sync for MediaRecommendation
impl Unpin for MediaRecommendation
impl UnsafeUnpin for MediaRecommendation
impl UnwindSafe for MediaRecommendation
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