pub struct PersonDetails {
pub person_id: u64,
pub language: Option<String>,
}Expand description
Command to get the details of a person
use tmdb_api::prelude::Command;
use tmdb_api::client::Client;
use tmdb_api::client::reqwest::ReqwestExecutor;
use tmdb_api::people::details::PersonDetails;
#[tokio::main]
async fn main() {
let client = Client::<ReqwestExecutor>::new("this-is-my-secret-token".into());
let cmd = PersonDetails::new(1);
let result = cmd.execute(&client).await;
match result {
Ok(res) => println!("found: {:#?}", res),
Err(err) => eprintln!("error: {:?}", err),
};
}Fields§
§person_id: u64ID of the person
language: Option<String>ISO 639-1 value to display translated data for the fields that support it.
Implementations§
Source§impl PersonDetails
impl PersonDetails
Trait Implementations§
Source§impl Clone for PersonDetails
impl Clone for PersonDetails
Source§fn clone(&self) -> PersonDetails
fn clone(&self) -> PersonDetails
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 PersonDetails
impl Command for PersonDetails
Source§impl Debug for PersonDetails
impl Debug for PersonDetails
Source§impl Default for PersonDetails
impl Default for PersonDetails
Source§fn default() -> PersonDetails
fn default() -> PersonDetails
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PersonDetails
impl RefUnwindSafe for PersonDetails
impl Send for PersonDetails
impl Sync for PersonDetails
impl Unpin for PersonDetails
impl UnwindSafe for PersonDetails
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