[][src]Struct tvdb::raw::Tvdb

pub struct Tvdb<'a> {
    pub key: String,
    // some fields omitted
}

Main interface

Fields

key: String

Your API key from TheTVDB.com

Implementations

impl<'a> Tvdb<'a>[src]

pub fn new<S>(key: S) -> Tvdb<'a> where
    S: Into<String>, 
[src]

Initalise API with the given API key. A key can be acquired via the API Key Registration page

pub fn login(&self) -> TvdbResult<bool>[src]

Authenticate with TheTVDB, storing the JWT token internally for use by other methods.

pub fn set_http_client(&mut self, client: &'a dyn RequestClient)[src]

Sets a custom client (implementation of RequestClient) used to perform HTTP requests

pub fn search(
    &self,
    name: Option<&str>,
    imdb_id: Option<&str>
) -> TvdbResult<SeriesSearchResult>
[src]

pub fn episode<E>(&self, id: E) -> TvdbResult<EpisodeRecordResult> where
    E: Into<EpisodeId>, 
[src]

pub fn series_episodes<S>(
    &self,
    id: S,
    page: u32
) -> TvdbResult<SeriesEpisodesResult> where
    S: Into<SeriesId>, 
[src]

All episodes for given series

Trait Implementations

impl<'a> Clone for Tvdb<'a>[src]

impl<'a> Debug for Tvdb<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Tvdb<'a>

impl<'a> !Send for Tvdb<'a>

impl<'a> !Sync for Tvdb<'a>

impl<'a> Unpin for Tvdb<'a>

impl<'a> !UnwindSafe for Tvdb<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.