[][src]Trait tmdb_client::apis::ListsApi

pub trait ListsApi {
    fn get_list_details(
        &self,
        list_id: &str,
        language: Option<&str>
    ) -> Result<ListDetails, Error>;
fn get_list_item_status(
        &self,
        list_id: &str,
        movie_id: i32
    ) -> Result<ItemStatus, Error>;
fn post_list(
        &self,
        content_type: &str,
        session_id: &str,
        body: Option<ListBody>
    ) -> Result<ListStatusResponse, Error>;
fn post_list_add_item(
        &self,
        list_id: &str,
        content_type: &str,
        session_id: &str,
        body: Option<MediaIdBody>
    ) -> Result<StatusCodeMessage, Error>;
fn post_list_clear(
        &self,
        list_id: &str,
        confirm: bool,
        session_id: &str
    ) -> Result<StatusCodeMessage, Error>;
fn post_list_remove_item(
        &self,
        list_id: &str,
        content_type: &str,
        session_id: &str,
        body: Option<MediaIdBody>
    ) -> Result<StatusCodeMessage, Error>;
fn delete_list(
        &self,
        list_id: &str,
        session_id: &str
    ) -> Result<StatusCodeMessage, Error>; }

Required methods

fn get_list_details(
    &self,
    list_id: &str,
    language: Option<&str>
) -> Result<ListDetails, Error>

fn get_list_item_status(
    &self,
    list_id: &str,
    movie_id: i32
) -> Result<ItemStatus, Error>

fn post_list(
    &self,
    content_type: &str,
    session_id: &str,
    body: Option<ListBody>
) -> Result<ListStatusResponse, Error>

fn post_list_add_item(
    &self,
    list_id: &str,
    content_type: &str,
    session_id: &str,
    body: Option<MediaIdBody>
) -> Result<StatusCodeMessage, Error>

fn post_list_clear(
    &self,
    list_id: &str,
    confirm: bool,
    session_id: &str
) -> Result<StatusCodeMessage, Error>

fn post_list_remove_item(
    &self,
    list_id: &str,
    content_type: &str,
    session_id: &str,
    body: Option<MediaIdBody>
) -> Result<StatusCodeMessage, Error>

fn delete_list(
    &self,
    list_id: &str,
    session_id: &str
) -> Result<StatusCodeMessage, Error>

Loading content...

Implementors

impl ListsApi for ListsApiClient[src]

Loading content...