pub struct ChangeList {
pub start_date: Option<NaiveDate>,
pub end_date: Option<NaiveDate>,
pub page: Option<u32>,
/* private fields */
}
Expand description
Command to list changes
use tmdb_api::prelude::Command;
use tmdb_api::Client;
use tmdb_api::client::reqwest::ReqwestExecutor;
use tmdb_api::changes::list::ChangeList;
#[tokio::main]
async fn main() {
let client = Client::<ReqwestExecutor>::new("this-is-my-secret-token".into());
let cmd = ChangeList::tv();
let result = cmd.execute(&client).await;
match result {
Ok(res) => println!("found: {:#?}", res),
Err(err) => eprintln!("error: {:?}", err),
};
}
Fields§
§start_date: Option<NaiveDate>
Filter the results with a start date.
end_date: Option<NaiveDate>
Filter the results with an end date.
page: Option<u32>
Which page to query.
Implementations§
Trait Implementations§
Source§impl Clone for ChangeList
impl Clone for ChangeList
Source§fn clone(&self) -> ChangeList
fn clone(&self) -> ChangeList
Returns a duplicate 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 ChangeList
impl Command for ChangeList
Source§impl Debug for ChangeList
impl Debug for ChangeList
Source§impl Default for ChangeList
impl Default for ChangeList
Source§fn default() -> ChangeList
fn default() -> ChangeList
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ChangeList
impl RefUnwindSafe for ChangeList
impl Send for ChangeList
impl Sync for ChangeList
impl Unpin for ChangeList
impl UnwindSafe for ChangeList
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