Struct egs_api::EpicGames[][src]

pub struct EpicGames { /* fields omitted */ }

Struct to manage the communication with the Epic Games Store Api

Implementations

impl EpicGames[src]

pub fn new() -> Self[src]

Creates new object

pub fn is_logged_in(&self) -> bool[src]

Check whether the user is logged in

pub fn user_details(&self) -> UserData[src]

Get User details

pub fn set_user_details(&mut self, user_details: UserData)[src]

Update User Details

pub async fn auth_sid(&self, sid: &str) -> Option<String>[src]

Authenticate with sid

pub async fn auth_code(&mut self, code: String) -> bool[src]

Start session with auth code

pub async fn login(&mut self) -> bool[src]

Perform login based on previous authentication

pub async fn list_assets(&mut self) -> Vec<EpicAsset>[src]

Returns all assets

pub async fn get_asset_manifest(
    &mut self,
    platform: Option<String>,
    label: Option<String>,
    namespace: Option<String>,
    item_id: Option<String>,
    app: Option<String>
) -> Option<AssetManifest>
[src]

Return asset

pub async fn get_asset_info(&mut self, asset: EpicAsset) -> Option<AssetInfo>[src]

Returns info for an asset

pub async fn get_game_token(&mut self) -> Option<GameToken>[src]

Returns game token

pub async fn get_ownership_token(&mut self, asset: EpicAsset) -> Option<String>[src]

Returns ownership token for an Asset

pub async fn get_user_entitlements(&mut self) -> Vec<Entitlement>[src]

Returns user entitlements

pub async fn get_library_items(
    &mut self,
    include_metadata: bool
) -> Option<Library>
[src]

Returns the user library

pub async fn get_asset_download_manifest(
    &self,
    manifest: Manifest
) -> Result<DownloadManifest, EpicAPIError>
[src]

Returns a DownloadManifest for a specified file manifest

Trait Implementations

impl Clone for EpicGames[src]

impl Debug for EpicGames[src]

impl Default for EpicGames[src]

Auto Trait Implementations

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> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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.