pub struct Countries { /* private fields */ }Expand description
Get a list of all countries
use tmdb_api::prelude::Command;
use tmdb_api::Client;
use tmdb_api::client::reqwest::ReqwestExecutor;
use tmdb_api::configuration::countries::Countries;
#[tokio::main]
async fn main() {
let client = Client::<ReqwestExecutor>::new("this-is-my-secret-token".into());
let result = Countries::default().execute(&client).await;
match result {
Ok(res) => println!("found: {res:#?}"),
Err(err) => eprintln!("error: {err:?}"),
};
}Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Countries
impl RefUnwindSafe for Countries
impl Send for Countries
impl Sync for Countries
impl Unpin for Countries
impl UnwindSafe for Countries
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