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::Client;
use tmdb_api::client::reqwest::ReqwestExecutor;
use tmdb_api::movie::changes::MovieChanges;
#[tokio::main]
async fn main() {
let client = Client::<ReqwestExecutor>::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
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
Auto Trait Implementations§
impl Freeze for MovieChanges
impl RefUnwindSafe for MovieChanges
impl Send for MovieChanges
impl Sync for MovieChanges
impl Unpin for MovieChanges
impl UnwindSafe for MovieChanges
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