Struct IGDBClient

Source
pub struct IGDBClient { /* private fields */ }

Implementations§

Source§

impl IGDBClient

Source

pub fn age_ratings(&self) -> AgeRatingsClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn artworks(&self) -> ArtworksClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn character_mug_shots(&self) -> CharacterMugshotsClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn characters(&self) -> CharactersClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn companies(&self) -> CompaniesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn covers(&self) -> CoversClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn games(&self) -> GamesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn game_modes(&self) -> GameModesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn game_videos(&self) -> GameVideosClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn game_engines(&self) -> EnginesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn franchises(&self) -> FranchisesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn multiplayer_modes(&self) -> MultiPlayerModesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn platforms(&self) -> PlatformsClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn platform_logos(&self) -> PlatformLogosClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn player_perspectives(&self) -> PlayerPerpectivesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn release_dates(&self) -> ReleaseDatesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn screenshots(&self) -> ScreenshotsClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn themes(&self) -> ThemesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn websites(&self) -> WebsitesClient

Returns a reference to the client

Source§

impl IGDBClient

Source

pub fn new<S: Into<String>>(api_key: S) -> IGDBClient

Creates a new instance of the IGDB Client To create a new instance you need to provide the user-key your are provided with when you register in the API Website

§Examples
use igdb_rs::client::IGDBClient;

let igdb = IGDBClient::new("user-key");
Source

pub fn create_request() -> RequestBuilder

Creates a new instance of a Request builder you can use it’s methods to create custom queries

§Examples
use igdb_rs::client::IGDBClient;
use igdb_rs::request_builder::Equality;

let mut request = IGDBClient::create_request();
request
.all_fields()
.add_where("id", Equality::Greater, "340")
.limit(10);

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,