Trait mal_api::anime::api::Request

source ·
pub trait Request {
    // Required methods
    fn get<'life0, 'life1, 'async_trait, T>(
        &'life0 self,
        query: &'life1 T
    ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
       where T: Serialize + Send + Sync + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_details<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 GetAnimeDetails
    ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_ranking<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 GetAnimeRanking
    ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_seasonal<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 GetSeasonalAnime
    ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_user<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: &'life1 GetUserAnimeList
    ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn get_next_or_prev<'life0, 'life1, 'async_trait>(
        &'life0 self,
        query: Option<&'life1 String>
    ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

This trait defines the common request methods available to both Client and Oauth AnimeApiClients

Required Methods§

source

fn get<'life0, 'life1, 'async_trait, T>( &'life0 self, query: &'life1 T ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
where T: Serialize + Send + Sync + 'async_trait, Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_details<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 GetAnimeDetails ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_ranking<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 GetAnimeRanking ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_seasonal<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 GetSeasonalAnime ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_user<'life0, 'life1, 'async_trait>( &'life0 self, query: &'life1 GetUserAnimeList ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn get_next_or_prev<'life0, 'life1, 'async_trait>( &'life0 self, query: Option<&'life1 String> ) -> Pin<Box<dyn Future<Output = Result<String, AnimeApiError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Object Safety§

This trait is not object safe.

Implementors§