Skip to main content

media_tools/models/
watched_policy.rs

1//! Deterministic policy for excluding titles already watched by participants.
2use serde::{Deserialize, Serialize};
3
4/// How a recommendation treats watched titles across its selected participants.
5#[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Serialize, Deserialize)]
6#[serde(rename_all = "snake_case")]
7pub enum WatchedPolicy {
8    /// Exclude a title if any selected participant watched it.
9    #[default]
10    AnyParticipant,
11    /// Exclude a title only if every selected participant watched it.
12    AllParticipants,
13    /// Do not exclude watched titles.
14    IncludeAll,
15}