pub struct FindRandomPayload {
pub service: String,
pub type: MediaType,
pub movie_genre: MovieGenre,
pub tv_genre: TvGenre,
pub anime_genre: AnimeGenre,
pub rating_from: u8,
pub rating_to: u8,
pub rank_limit: u32,
pub year_from: Option<u16>,
pub year_to: Option<u16>,
pub limit: u16,
}Expand description
Filter shape for FindRandomRequest.
Fields§
§service: String§type: MediaTypeRandom search supports movie / tv / anime; Episode is coerced to tv.
movie_genre: MovieGenre§tv_genre: TvGenre§anime_genre: AnimeGenre§rating_from: u8Max value is 10. Random search for TV Shows and Movies will be performed using IMDB ratings. Anime are based on MAL ratings.
Example: 5. Default: 1.
rating_to: u8Example: 10.
rank_limit: u32Maximum rank allowed. Example: 2000.
year_from: Option<u16>§year_to: Option<u16>§limit: u16Trait Implementations§
Source§impl Clone for FindRandomPayload
impl Clone for FindRandomPayload
Source§fn clone(&self) -> FindRandomPayload
fn clone(&self) -> FindRandomPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FindRandomPayload
impl RefUnwindSafe for FindRandomPayload
impl Send for FindRandomPayload
impl Sync for FindRandomPayload
impl Unpin for FindRandomPayload
impl UnsafeUnpin for FindRandomPayload
impl UnwindSafe for FindRandomPayload
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