pub struct GenreQuery<'a> { /* private fields */ }Implementations§
Source§impl<'a> GenreQuery<'a>
impl<'a> GenreQuery<'a>
pub fn new() -> GenreQuery<'a>
Sourcepub fn with_genres_type<'b>(
&'b mut self,
genres_type: GenreType,
) -> &'b mut GenreQuery<'a>
pub fn with_genres_type<'b>( &'b mut self, genres_type: GenreType, ) -> &'b mut GenreQuery<'a>
What genres to output. Initially, only genres from KinoPoisk are displayed. You can also choose to display genres from Shikimori, MyDramaList, or all genres from both resources at once.
Sourcepub fn with_types<'b>(
&'b mut self,
types: &'a [ReleaseType],
) -> &'b mut GenreQuery<'a>
pub fn with_types<'b>( &'b mut self, types: &'a [ReleaseType], ) -> &'b mut GenreQuery<'a>
Maximum number of outputs
Sourcepub fn with_year<'b>(&'b mut self, year: &'a [u32]) -> &'b mut GenreQuery<'a>
pub fn with_year<'b>(&'b mut self, year: &'a [u32]) -> &'b mut GenreQuery<'a>
Filter materials by year If you set this parameter, only materials of the corresponding year will be displayed
Sourcepub fn with_translation_id<'b>(
&'b mut self,
translation_id: &'a [u32],
) -> &'b mut GenreQuery<'a>
pub fn with_translation_id<'b>( &'b mut self, translation_id: &'a [u32], ) -> &'b mut GenreQuery<'a>
Filtering materials by translation ID
Sourcepub fn with_translation_type<'b>(
&'b mut self,
translation_type: &'a [TranslationType],
) -> &'b mut GenreQuery<'a>
pub fn with_translation_type<'b>( &'b mut self, translation_type: &'a [TranslationType], ) -> &'b mut GenreQuery<'a>
Filter content by translation type. Allows you to output only voice translation or only subtitles
Sourcepub fn with_has_field<'b>(
&'b mut self,
has_field: &'a [MaterialDataField],
) -> &'b mut GenreQuery<'a>
pub fn with_has_field<'b>( &'b mut self, has_field: &'a [MaterialDataField], ) -> &'b mut GenreQuery<'a>
Filtering materials based on the presence of a specific field. Materials that have at least one of the listed fields are shown. In order to show only materials that have all the listed fields
Sourcepub fn with_has_field_and<'b>(
&'b mut self,
has_field: &'a [MaterialDataField],
) -> &'b mut GenreQuery<'a>
pub fn with_has_field_and<'b>( &'b mut self, has_field: &'a [MaterialDataField], ) -> &'b mut GenreQuery<'a>
Filtering materials based on the presence of a specific field. Materials that have all the listed fields are shown
Sourcepub fn with_countries<'b>(
&'b mut self,
countries: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_countries<'b>( &'b mut self, countries: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by country. You can specify a single value or multiple values, separated by commas (then materials with at least one of the listed countries will be displayed). The parameter is case sensitive
Sourcepub fn with_genres<'b>(
&'b mut self,
genres: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_genres<'b>( &'b mut self, genres: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by genre. You can specify either one value or several values separated by commas (then materials that have at least one of the specified genres will be displayed). You can search by Kinopoisk, Shikimori, MyDramaList or by all genres at once. The parameter is not case sensitive
Sourcepub fn with_anime_genres<'b>(
&'b mut self,
anime_genres: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_anime_genres<'b>( &'b mut self, anime_genres: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by genre. You can specify either one value or several values separated by commas (then materials that have at least one of the specified genres will be displayed). You can search by Kinopoisk, Shikimori, MyDramaList or by all genres at once. The parameter is not case sensitive
Sourcepub fn with_drama_genres<'b>(
&'b mut self,
drama_genres: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_drama_genres<'b>( &'b mut self, drama_genres: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by genre. You can specify either one value or several values separated by commas (then materials that have at least one of the specified genres will be displayed). You can search by Kinopoisk, Shikimori, MyDramaList or by all genres at once. The parameter is not case sensitive
Sourcepub fn with_all_genres<'b>(
&'b mut self,
all_genres: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_all_genres<'b>( &'b mut self, all_genres: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by genre. You can specify either one value or several values separated by commas (then materials that have at least one of the specified genres will be displayed). You can search by Kinopoisk, Shikimori, MyDramaList or by all genres at once. The parameter is not case sensitive
Sourcepub fn with_duration<'b>(
&'b mut self,
duration: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_duration<'b>( &'b mut self, duration: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by duration (in minutes). You can specify either a single value to search for the exact duration, or an interval.
Sourcepub fn with_kinopoisk_rating<'b>(
&'b mut self,
kinopoisk_rating: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_kinopoisk_rating<'b>( &'b mut self, kinopoisk_rating: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by Kinopoisk, IMDb, Shikimori, or MyDramaList ratings. You can specify either a single value to search for the exact rating, or an interval
Sourcepub fn with_imdb_rating<'b>(
&'b mut self,
imdb_rating: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_imdb_rating<'b>( &'b mut self, imdb_rating: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by Kinopoisk, IMDb, Shikimori, or MyDramaList ratings. You can specify either a single value to search for the exact rating, or an interval
Sourcepub fn with_shikimori_rating<'b>(
&'b mut self,
shikimori_rating: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_shikimori_rating<'b>( &'b mut self, shikimori_rating: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by Kinopoisk, IMDb, Shikimori, or MyDramaList ratings. You can specify either a single value to search for the exact rating, or an interval
Sourcepub fn with_mydramalist_rating<'b>(
&'b mut self,
mydramalist_rating: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_mydramalist_rating<'b>( &'b mut self, mydramalist_rating: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering by Kinopoisk, IMDb, Shikimori, or MyDramaList ratings. You can specify either a single value to search for the exact rating, or an interval
Sourcepub fn with_actors<'b>(
&'b mut self,
actors: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_actors<'b>( &'b mut self, actors: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by personas. You can specify a single value or multiple values, separated by commas (then materials that have at least one of the specified personas will be displayed). This parameter is case-independent. You can specify filters for several professions at once
Sourcepub fn with_directors<'b>(
&'b mut self,
directors: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_directors<'b>( &'b mut self, directors: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by personas. You can specify a single value or multiple values, separated by commas (then materials that have at least one of the specified personas will be displayed). This parameter is case-independent. You can specify filters for several professions at once
Sourcepub fn with_producers<'b>(
&'b mut self,
producers: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_producers<'b>( &'b mut self, producers: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by personas. You can specify a single value or multiple values, separated by commas (then materials that have at least one of the specified personas will be displayed). This parameter is case-independent. You can specify filters for several professions at once
Sourcepub fn with_writers<'b>(
&'b mut self,
writers: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_writers<'b>( &'b mut self, writers: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by personas. You can specify a single value or multiple values, separated by commas (then materials that have at least one of the specified personas will be displayed). This parameter is case-independent. You can specify filters for several professions at once
Sourcepub fn with_composers<'b>(
&'b mut self,
composers: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_composers<'b>( &'b mut self, composers: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by personas. You can specify a single value or multiple values, separated by commas (then materials that have at least one of the specified personas will be displayed). This parameter is case-independent. You can specify filters for several professions at once
Sourcepub fn with_editors<'b>(
&'b mut self,
editors: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_editors<'b>( &'b mut self, editors: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by personas. You can specify a single value or multiple values, separated by commas (then materials that have at least one of the specified personas will be displayed). This parameter is case-independent. You can specify filters for several professions at once
Sourcepub fn with_designers<'b>(
&'b mut self,
designers: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_designers<'b>( &'b mut self, designers: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by personas. You can specify a single value or multiple values, separated by commas (then materials that have at least one of the specified personas will be displayed). This parameter is case-independent. You can specify filters for several professions at once
Sourcepub fn with_operators<'b>(
&'b mut self,
operators: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_operators<'b>( &'b mut self, operators: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by personas. You can specify a single value or multiple values, separated by commas (then materials that have at least one of the specified personas will be displayed). This parameter is case-independent. You can specify filters for several professions at once
Sourcepub fn with_rating_mpaa<'b>(
&'b mut self,
rating_mpaa: &'a [MppaRating],
) -> &'b mut GenreQuery<'a>
pub fn with_rating_mpaa<'b>( &'b mut self, rating_mpaa: &'a [MppaRating], ) -> &'b mut GenreQuery<'a>
Filtering materials by age rating. You can specify a single value or multiple values, separated by commas. The parameter is case-insensitive
Sourcepub fn with_minimal_age<'b>(
&'b mut self,
minimal_age: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_minimal_age<'b>( &'b mut self, minimal_age: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filter content by the minimum age from which it can be viewed. You can specify either a single value or a range of values
Sourcepub fn with_anime_kind<'b>(
&'b mut self,
anime_kind: &'a [AnimeKind],
) -> &'b mut GenreQuery<'a>
pub fn with_anime_kind<'b>( &'b mut self, anime_kind: &'a [AnimeKind], ) -> &'b mut GenreQuery<'a>
Filtering materials by anime type. You can specify one value or several values separated by commas (then materials with at least one of these types will be displayed)
Filters materials by MyDramaList tags. You can specify one value or several values separated by commas (then materials with at least one of these types will be displayed)
Sourcepub fn with_anime_status<'b>(
&'b mut self,
anime_status: &'a [AnimeStatus],
) -> &'b mut GenreQuery<'a>
pub fn with_anime_status<'b>( &'b mut self, anime_status: &'a [AnimeStatus], ) -> &'b mut GenreQuery<'a>
Filter materials by Shikimori status, MyDramaList, or by all statuses. You can specify a single value or several values separated by commas (then materials that have at least one of the listed statuses will be displayed)
Sourcepub fn with_drama_status<'b>(
&'b mut self,
drama_status: &'a [DramaStatus],
) -> &'b mut GenreQuery<'a>
pub fn with_drama_status<'b>( &'b mut self, drama_status: &'a [DramaStatus], ) -> &'b mut GenreQuery<'a>
Filter materials by Shikimori status, MyDramaList, or by all statuses. You can specify a single value or several values separated by commas (then materials that have at least one of the listed statuses will be displayed)
Sourcepub fn with_all_status<'b>(
&'b mut self,
all_status: &'a [AllStatus],
) -> &'b mut GenreQuery<'a>
pub fn with_all_status<'b>( &'b mut self, all_status: &'a [AllStatus], ) -> &'b mut GenreQuery<'a>
Filter materials by Shikimori status, MyDramaList, or by all statuses. You can specify a single value or several values separated by commas (then materials that have at least one of the listed statuses will be displayed)
Sourcepub fn with_anime_studios<'b>(
&'b mut self,
anime_studios: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_anime_studios<'b>( &'b mut self, anime_studios: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by anime studio. You can specify either one value or several values separated by commas (then materials with at least one of the listed studios will be displayed)
Sourcepub fn with_anime_licensed_by<'b>(
&'b mut self,
anime_licensed_by: &'a [&'a str],
) -> &'b mut GenreQuery<'a>
pub fn with_anime_licensed_by<'b>( &'b mut self, anime_licensed_by: &'a [&'a str], ) -> &'b mut GenreQuery<'a>
Filtering materials by license owner. You can specify a single value or several values separated by commas (then materials that have at least one of the listed owners will be displayed)
Trait Implementations§
Source§impl<'a> Clone for GenreQuery<'a>
impl<'a> Clone for GenreQuery<'a>
Source§fn clone(&self) -> GenreQuery<'a>
fn clone(&self) -> GenreQuery<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more