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