ListQuery

Struct ListQuery 

Source
pub struct ListQuery<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> ListQuery<'a>

Source

pub fn new() -> ListQuery<'a>

Source

pub fn with_limit<'b>(&'b mut self, limit: u32) -> &'b mut ListQuery<'a>

Maximum number of outputs

Source

pub fn with_sort<'b>(&'b mut self, sort: ListSort) -> &'b mut ListQuery<'a>

What field to sort materials by

Source

pub fn with_order<'b>(&'b mut self, order: ListOrder) -> &'b mut ListQuery<'a>

Sorting direction

Source

pub fn with_types<'b>( &'b mut self, types: &'a [ReleaseType], ) -> &'b mut ListQuery<'a>

Maximum number of outputs

Source

pub fn with_year<'b>(&'b mut self, year: &'a [u32]) -> &'b mut ListQuery<'a>

Filter materials by year If you set this parameter, only materials of the corresponding year will be displayed

Source

pub fn with_translation_id<'b>( &'b mut self, translation_id: &'a [u32], ) -> &'b mut ListQuery<'a>

Filtering materials by translation ID

Source

pub fn with_translation_type<'b>( &'b mut self, translation_type: &'a [TranslationType], ) -> &'b mut ListQuery<'a>

Filter content by translation type. Allows you to output only voice translation or only subtitles

Source

pub fn with_has_field<'b>( &'b mut self, has_field: &'a [MaterialDataField], ) -> &'b mut ListQuery<'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

Source

pub fn with_has_field_and<'b>( &'b mut self, has_field: &'a [MaterialDataField], ) -> &'b mut ListQuery<'a>

Filtering materials based on the presence of a specific field. Materials that have all the listed fields are shown

Source

pub fn with_camrip<'b>(&'b mut self, camrip: bool) -> &'b mut ListQuery<'a>

Filtering materials by camrip parameter. If you specify false, only materials with a quality picture will be output. If you don’t specify this parameter, all materials will be displayed

Source

pub fn with_lgbt<'b>(&'b mut self, lgbt: bool) -> &'b mut ListQuery<'a>

Filters materials by the lgbt parameter. If you specify false, only materials that do not contain LGBT scenes will be output. If you don’t specify this parameter, all materials will be displayed

Source

pub fn with_seasons<'b>( &'b mut self, with_seasons: bool, ) -> &'b mut ListQuery<'a>

If you specify true, the seasons of the series will also be listed in the seasons field. This and the following parameter are made to avoid overloading the output with a huge amount of information about seasons and episodes, if this information is not needed for parsing

Source

pub fn with_season<'b>(&'b mut self, season: &'a [u32]) -> &'b mut ListQuery<'a>

With this option you can specify which season you are interested in. This way, only shows that have that season will appear in the search results. Passing this parameter also automatically enables the with_seasons parameter

Source

pub fn with_episodes<'b>( &'b mut self, with_episodes: bool, ) -> &'b mut ListQuery<'a>

If you specify true, the seasons field will be added to each series (even if with_seasons is not specified or specified as false) and the episodes field with the episodes of that season will be added to each season. If the with_episodes parameter is used, the series numbers will correspond to the normal series references. If you use the with_episodes_data parameter, episode objects will be assigned to the episode numbers, where the link will be available via the link parameter, the episode name (if any) via the title parameter, and the frames via screenshots

Source

pub fn with_episodes_data<'b>( &'b mut self, with_episodes_data: bool, ) -> &'b mut ListQuery<'a>

If you specify true, the seasons field will be added to each series (even if with_seasons is not specified or specified as false) and the episodes field with the episodes of that season will be added to each season. If the with_episodes parameter is used, the series numbers will correspond to the normal series references. If you use the with_episodes_data parameter, episode objects will be assigned to the episode numbers, where the link will be available via the link parameter, the episode name (if any) via the title parameter, and the frames via screenshots

If you specify true, all links to players will be replaced by special links to pages with players (suitable for cases when you don’t have your own site). You can customize appearance of these pages in settings in the base. If parameter with_seasons or with_episodes / with_episodes_data is specified together with this parameter, links in seasons and episodes will also be replaced

Source

pub fn with_not_blocked_in<'b>( &'b mut self, not_blocked_in: &'a [&'a str], ) -> &'b mut ListQuery<'a>

Filters materials by country in which they should not be blocked. The country codes are specified separated by commas

Source

pub fn with_not_blocked_for_me<'b>( &'b mut self, not_blocked_for_me: &'a [&'a str], ) -> &'b mut ListQuery<'a>

A simpler analog of the previous parameter. Our server itself checks which country the current request comes from and doesn’t display those materials that are blocked for that country. This parameter can be useful if the API is called on your site

Source

pub fn with_material_data<'b>( &'b mut self, with_material_data: bool, ) -> &'b mut ListQuery<'a>

If you specify true, the material_data field will be added to each movie/series with information from Kinopoisk and Shikimori

Source

pub fn with_countries<'b>( &'b mut self, countries: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_genres<'b>( &'b mut self, genres: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_anime_genres<'b>( &'b mut self, anime_genres: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_drama_genres<'b>( &'b mut self, drama_genres: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_all_genres<'b>( &'b mut self, all_genres: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_duration<'b>( &'b mut self, duration: &'a [&'a str], ) -> &'b mut ListQuery<'a>

Filtering by duration (in minutes). You can specify either a single value to search for the exact duration, or an interval.

Source

pub fn with_kinopoisk_rating<'b>( &'b mut self, kinopoisk_rating: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_imdb_rating<'b>( &'b mut self, imdb_rating: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_shikimori_rating<'b>( &'b mut self, shikimori_rating: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_mydramalist_rating<'b>( &'b mut self, mydramalist_rating: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_actors<'b>( &'b mut self, actors: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_directors<'b>( &'b mut self, directors: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_producers<'b>( &'b mut self, producers: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_writers<'b>( &'b mut self, writers: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_composers<'b>( &'b mut self, composers: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_editors<'b>( &'b mut self, editors: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_designers<'b>( &'b mut self, designers: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_operators<'b>( &'b mut self, operators: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_rating_mpaa<'b>( &'b mut self, rating_mpaa: &'a [MppaRating], ) -> &'b mut ListQuery<'a>

Filtering materials by age rating. You can specify a single value or multiple values, separated by commas. The parameter is case-insensitive

Source

pub fn with_minimal_age<'b>( &'b mut self, minimal_age: &'a [&'a str], ) -> &'b mut ListQuery<'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

Source

pub fn with_anime_kind<'b>( &'b mut self, anime_kind: &'a [AnimeKind], ) -> &'b mut ListQuery<'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)

Source

pub fn with_mydramalist_tags<'b>( &'b mut self, mydramalist_tags: &'a [&'a str], ) -> &'b mut ListQuery<'a>

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)

Source

pub fn with_anime_status<'b>( &'b mut self, anime_status: &'a [AnimeStatus], ) -> &'b mut ListQuery<'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)

Source

pub fn with_drama_status<'b>( &'b mut self, drama_status: &'a [DramaStatus], ) -> &'b mut ListQuery<'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)

Source

pub fn with_all_status<'b>( &'b mut self, all_status: &'a [AllStatus], ) -> &'b mut ListQuery<'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)

Source

pub fn with_anime_studios<'b>( &'b mut self, anime_studios: &'a [&'a str], ) -> &'b mut ListQuery<'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)

Source

pub fn with_anime_licensed_by<'b>( &'b mut self, anime_licensed_by: &'a [&'a str], ) -> &'b mut ListQuery<'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)

Source

pub async fn execute<'b>( &'a self, client: &'b Client, ) -> Result<ListResponse, Error>

Execute the query and fetch the results.

Source

pub fn stream( &self, client: &Client, ) -> impl Stream<Item = Result<ListResponse, Error>>

Stream the query

Trait Implementations§

Source§

impl<'a> Clone for ListQuery<'a>

Source§

fn clone(&self) -> ListQuery<'a>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Debug for ListQuery<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Default for ListQuery<'a>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'a> Serialize for ListQuery<'a>

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for ListQuery<'a>

§

impl<'a> RefUnwindSafe for ListQuery<'a>

§

impl<'a> Send for ListQuery<'a>

§

impl<'a> Sync for ListQuery<'a>

§

impl<'a> Unpin for ListQuery<'a>

§

impl<'a> UnwindSafe for ListQuery<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,