Struct tmdb_api::watch_provider::list::WatchProviderList
source · pub struct WatchProviderList {
pub media_type: MediaType,
pub watch_region: Option<String>,
pub language: Option<String>,
}Expand description
Command to list watch providers
Fields§
§media_type: MediaType§watch_region: Option<String>ISO 3166-1 alpha-2 value to filter the results for one country.
language: Option<String>ISO 639-1 value to display translated data for the fields that support it.
Implementations§
source§impl WatchProviderList
impl WatchProviderList
pub fn new(media_type: MediaType) -> Self
pub fn with_watch_region(self, watch_region: String) -> Self
pub fn with_language(self, language: String) -> Self
Trait Implementations§
source§impl Clone for WatchProviderList
impl Clone for WatchProviderList
source§fn clone(&self) -> WatchProviderList
fn clone(&self) -> WatchProviderList
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Command for WatchProviderList
impl Command for WatchProviderList
type Output = Vec<WatchProviderListResult>
fn path(&self) -> Cow<'static, str>
fn params(&self) -> Vec<(&'static str, Cow<'_, str>)>
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl RefUnwindSafe for WatchProviderList
impl Send for WatchProviderList
impl Sync for WatchProviderList
impl Unpin for WatchProviderList
impl UnwindSafe for WatchProviderList
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