pub struct RecommendationService { /* private fields */ }Expand description
Deterministic discovery, filtering and ranking over the configured providers.
Implementations§
Source§impl RecommendationService
impl RecommendationService
pub fn new( media: MediaStore, tmdb: TmdbClient, watchmode: Option<WatchmodeClient>, config: MediaConfig, ) -> Result<Self, RecommendationError>
Sourcepub async fn recommend(
&self,
context: &RecommendationContext,
) -> Result<Vec<MediaRecommendation>, RecommendationError>
pub async fn recommend( &self, context: &RecommendationContext, ) -> Result<Vec<MediaRecommendation>, RecommendationError>
Recommend for exactly the participants supplied in the validated context.
Shared family preferences always contribute. Individual preferences, restrictions and activity are loaded only for selected participants. The caller must resolve and authorize the family ID before calling.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RecommendationService
impl !UnwindSafe for RecommendationService
impl Freeze for RecommendationService
impl Send for RecommendationService
impl Sync for RecommendationService
impl Unpin for RecommendationService
impl UnsafeUnpin for RecommendationService
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