[−][src]Struct tvdb::raw::Tvdb
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]
S: Into<String>,
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]
&self,
name: Option<&str>,
imdb_id: Option<&str>
) -> TvdbResult<SeriesSearchResult>
Search for series by name or IMDB ID https://api.thetvdb.com/swagger#!/Search/get_search_series
pub fn episode<E>(&self, id: E) -> TvdbResult<EpisodeRecordResult> where
E: Into<EpisodeId>,
[src]
E: Into<EpisodeId>,
Full information about given episode https://api.thetvdb.com/swagger#!/Episodes/get_episodes_id
pub fn series_episodes<S>(
&self,
id: S,
page: u32
) -> TvdbResult<SeriesEpisodesResult> where
S: Into<SeriesId>,
[src]
&self,
id: S,
page: u32
) -> TvdbResult<SeriesEpisodesResult> where
S: Into<SeriesId>,
All episodes for given series
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,