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 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,
    asset: EpicAsset
) -> 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

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

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

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.