[][src]Trait trakt::selectors::SelectIds

pub trait SelectIds: Sized {
    fn ids(&mut self) -> &mut Map<String, Value>;

    fn slug(self, slug: &str) -> Self { ... }
fn id(self, trakt_id: u64) -> Self { ... }
fn tmdb(self, tmdb_id: u64) -> Self { ... }
fn imdb(self, imdb_id: &str) -> Self { ... }
fn tvdb(self, tvdb_id: u64) -> Self { ... }
fn tvrage(self, tvrage_id: u64) -> Self { ... } }

Trait allowing an item to be selected by ids

Required methods

fn ids(&mut self) -> &mut Map<String, Value>

Returns the ids-map of an item

Loading content...

Provided methods

fn slug(self, slug: &str) -> Self

Select an item by its slug (ex. "batman-begins-2005")

fn id(self, trakt_id: u64) -> Self

Select an item by its id on trakt (ex. 228)

fn tmdb(self, tmdb_id: u64) -> Self

Select an item by its id on tmdb (ex. 272)

fn imdb(self, imdb_id: &str) -> Self

Select an item by its id on imdb (ex. "tt0372784")

fn tvdb(self, tvdb_id: u64) -> Self

Select an item by its id on tvdb (ex. 81189)

fn tvrage(self, tvrage_id: u64) -> Self

Select an item by its id on tvrage

Loading content...

Implementors

impl SelectIds for EpisodeSelector[src]

fn slug(self, slug: &str) -> Self[src]

fn id(self, trakt_id: u64) -> Self[src]

fn tmdb(self, tmdb_id: u64) -> Self[src]

fn imdb(self, imdb_id: &str) -> Self[src]

fn tvdb(self, tvdb_id: u64) -> Self[src]

fn tvrage(self, tvrage_id: u64) -> Self[src]

impl SelectIds for ListSelector[src]

fn slug(self, slug: &str) -> Self[src]

fn id(self, trakt_id: u64) -> Self[src]

fn tmdb(self, tmdb_id: u64) -> Self[src]

fn imdb(self, imdb_id: &str) -> Self[src]

fn tvdb(self, tvdb_id: u64) -> Self[src]

fn tvrage(self, tvrage_id: u64) -> Self[src]

impl SelectIds for MovieSelector[src]

fn slug(self, slug: &str) -> Self[src]

fn id(self, trakt_id: u64) -> Self[src]

fn tmdb(self, tmdb_id: u64) -> Self[src]

fn imdb(self, imdb_id: &str) -> Self[src]

fn tvdb(self, tvdb_id: u64) -> Self[src]

fn tvrage(self, tvrage_id: u64) -> Self[src]

impl SelectIds for SeasonSelector[src]

fn slug(self, slug: &str) -> Self[src]

fn id(self, trakt_id: u64) -> Self[src]

fn tmdb(self, tmdb_id: u64) -> Self[src]

fn imdb(self, imdb_id: &str) -> Self[src]

fn tvdb(self, tvdb_id: u64) -> Self[src]

fn tvrage(self, tvrage_id: u64) -> Self[src]

impl SelectIds for ShowSelector[src]

fn slug(self, slug: &str) -> Self[src]

fn id(self, trakt_id: u64) -> Self[src]

fn tmdb(self, tmdb_id: u64) -> Self[src]

fn imdb(self, imdb_id: &str) -> Self[src]

fn tvdb(self, tvdb_id: u64) -> Self[src]

fn tvrage(self, tvrage_id: u64) -> Self[src]

impl SelectIds for UserSelector[src]

fn slug(self, slug: &str) -> Self[src]

fn id(self, trakt_id: u64) -> Self[src]

fn tmdb(self, tmdb_id: u64) -> Self[src]

fn imdb(self, imdb_id: &str) -> Self[src]

fn tvdb(self, tvdb_id: u64) -> Self[src]

fn tvrage(self, tvrage_id: u64) -> Self[src]

Loading content...