Struct tmdb_api::collection::details::CollectionDetails
source · 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;
use tmdb_api::collection::details::CollectionDetails;
#[tokio::main]
async fn main() {
let client = Client::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 copy 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
type Output = CollectionDetailsResult
fn path(&self) -> Cow<'static, str>
fn params(&self) -> Vec<(&'static str, Cow<'_, str>)>
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 Client
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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 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