Struct tmdb_api::movie::changes::MovieChanges
source · pub struct MovieChanges {
pub movie_id: u64,
pub start_date: Option<NaiveDate>,
pub end_date: Option<NaiveDate>,
pub page: Option<u32>,
}Expand description
Command to get changes for a movie
use tmdb_api::prelude::Command;
use tmdb_api::Client;
use tmdb_api::movie::changes::MovieChanges;
#[tokio::main]
async fn main() {
let client = Client::new("this-is-my-secret-token".into());
let cmd = MovieChanges::new(1);
let result = cmd.execute(&client).await;
match result {
Ok(res) => println!("found: {:#?}", res),
Err(err) => eprintln!("error: {:?}", err),
};
}Fields§
§movie_id: u64ID of the Movie
start_date: Option<NaiveDate>Filter the results with a start date.
end_date: Option<NaiveDate>Filter the results with a end date.
page: Option<u32>The country to filter the alternative titles
Implementations§
Trait Implementations§
source§impl Clone for MovieChanges
impl Clone for MovieChanges
source§fn clone(&self) -> MovieChanges
fn clone(&self) -> MovieChanges
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 MovieChanges
impl Command for MovieChanges
type Output = MovieChangesResult
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: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
source§impl Debug for MovieChanges
impl Debug for MovieChanges
source§impl Default for MovieChanges
impl Default for MovieChanges
source§fn default() -> MovieChanges
fn default() -> MovieChanges
Returns the “default value” for a type. Read more