pub struct Languages {}
Expand description
Get a list of all languages
use tmdb_api::prelude::Command;
use tmdb_api::Client;
use tmdb_api::client::reqwest::ReqwestExecutor;
use tmdb_api::configuration::languages::Languages;
#[tokio::main]
async fn main() {
let client = Client::<ReqwestExecutor>::new("this-is-my-secret-token".into());
let result = Languages::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 Languages
impl RefUnwindSafe for Languages
impl Send for Languages
impl Sync for Languages
impl Unpin for Languages
impl UnwindSafe for Languages
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