Command

Trait Command 

Source
pub trait Command: Sync {
    type Output: DeserializeOwned;

    // Required methods
    fn path(&self) -> Cow<'static, str>;
    fn params(&self) -> Vec<(&'static str, Cow<'_, str>)>;

    // Provided method
    fn execute<E: Executor + Send + Sync>(
        &self,
        client: &Client<E>,
    ) -> impl Future<Output = Result<Self::Output, Error>> + Send { ... }
}

Required Associated Types§

Required Methods§

Source

fn path(&self) -> Cow<'static, str>

Source

fn params(&self) -> Vec<(&'static str, Cow<'_, str>)>

Provided Methods§

Source

fn execute<E: Executor + Send + Sync>( &self, client: &Client<E>, ) -> impl Future<Output = Result<Self::Output, Error>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Command for CertificationList

Source§

impl Command for ChangeList

Source§

impl Command for CollectionDetails

Source§

impl Command for CompanyAlternativeNames

Source§

impl Command for CompanyDetails

Source§

impl Command for CompanyImages

Source§

impl Command for Countries

Source§

impl Command for Jobs

Source§

impl Command for Languages

Source§

impl Command for GenreList

Source§

impl Command for MovieAlternativeTitles

Source§

impl Command for MovieChanges

Source§

impl Command for MovieCredits

Source§

impl Command for MovieDetails

Source§

impl Command for MovieExternalIds

Source§

impl Command for MovieImages

Source§

impl Command for MovieKeywords

Source§

impl Command for MovieLatest

Source§

impl Command for MovieLists

Source§

impl Command for MovieNowPlaying

Source§

impl Command for MoviePopular

Source§

impl Command for MovieRecommendations

Source§

impl Command for MovieReleaseDates

Source§

impl Command for MovieReviews

Source§

impl Command for MovieSearch

Source§

impl Command for GetSimilarMovies

Source§

impl Command for MovieTopRated

Source§

impl Command for MovieTranslations

Source§

impl Command for MovieUpcoming

Source§

impl Command for MovieVideos

Source§

impl Command for MovieWatchProviders

Source§

impl Command for PersonDetails

Source§

impl Command for TVShowAggregateCredits

Source§

impl Command for TVShowContentRating

Source§

impl Command for TVShowDetails

Source§

impl Command for TVShowEpisodeDetails

Source§

impl Command for TVShowImages

Source§

impl Command for TVShowKeywords

Source§

impl Command for TVShowLatest

Source§

impl Command for TVShowPopular

Source§

impl Command for TVShowSearch

Source§

impl Command for TVShowSeasonDetails

Source§

impl Command for GetSimilarTVShows

Source§

impl Command for TVShowWatchProviders

Source§

impl Command for WatchProviderList