pub struct EpicGames { /* private fields */ }
Expand description
Struct to manage the communication with the Epic Games Store Api
Implementations§
Source§impl EpicGames
impl EpicGames
Sourcepub fn is_logged_in(&self) -> bool
pub fn is_logged_in(&self) -> bool
Check whether the user is logged in
Sourcepub fn user_details(&self) -> UserData
pub fn user_details(&self) -> UserData
Get User details
Sourcepub fn set_user_details(&mut self, user_details: UserData)
pub fn set_user_details(&mut self, user_details: UserData)
Update User Details
Sourcepub async fn auth_code(
&mut self,
exchange_token: Option<String>,
authorization_code: Option<String>,
) -> bool
pub async fn auth_code( &mut self, exchange_token: Option<String>, authorization_code: Option<String>, ) -> bool
Start session with auth code
Sourcepub async fn list_assets(
&mut self,
platform: Option<String>,
label: Option<String>,
) -> Vec<EpicAsset>
pub async fn list_assets( &mut self, platform: Option<String>, label: Option<String>, ) -> Vec<EpicAsset>
Returns all assets
Sourcepub async fn asset_manifest(
&mut self,
platform: Option<String>,
label: Option<String>,
namespace: Option<String>,
item_id: Option<String>,
app: Option<String>,
) -> Option<AssetManifest>
pub async fn asset_manifest( &mut self, platform: Option<String>, label: Option<String>, namespace: Option<String>, item_id: Option<String>, app: Option<String>, ) -> Option<AssetManifest>
Return asset
Sourcepub async fn fab_asset_manifest(
&self,
artifact_id: &str,
namespace: &str,
asset_id: &str,
platform: Option<&str>,
) -> Result<Vec<DownloadInfo>, EpicAPIError>
pub async fn fab_asset_manifest( &self, artifact_id: &str, namespace: &str, asset_id: &str, platform: Option<&str>, ) -> Result<Vec<DownloadInfo>, EpicAPIError>
Return Fab Asset Manifest
Sourcepub async fn asset_info(&mut self, asset: EpicAsset) -> Option<AssetInfo>
pub async fn asset_info(&mut self, asset: EpicAsset) -> Option<AssetInfo>
Returns info for an asset
Sourcepub async fn account_details(&mut self) -> Option<AccountData>
pub async fn account_details(&mut self) -> Option<AccountData>
Returns account details
Sourcepub async fn account_ids_details(
&mut self,
ids: Vec<String>,
) -> Option<Vec<AccountInfo>>
pub async fn account_ids_details( &mut self, ids: Vec<String>, ) -> Option<Vec<AccountInfo>>
Returns account id info
Sourcepub async fn account_friends(
&mut self,
include_pending: bool,
) -> Option<Vec<Friend>>
pub async fn account_friends( &mut self, include_pending: bool, ) -> Option<Vec<Friend>>
Returns account id info
Sourcepub async fn game_token(&mut self) -> Option<GameToken>
pub async fn game_token(&mut self) -> Option<GameToken>
Returns game token
Sourcepub async fn ownership_token(&mut self, asset: EpicAsset) -> Option<String>
pub async fn ownership_token(&mut self, asset: EpicAsset) -> Option<String>
Returns ownership token for an Asset
Sourcepub async fn user_entitlements(&mut self) -> Vec<Entitlement>
pub async fn user_entitlements(&mut self) -> Vec<Entitlement>
Returns user entitlements
Sourcepub async fn library_items(&mut self, include_metadata: bool) -> Option<Library>
pub async fn library_items(&mut self, include_metadata: bool) -> Option<Library>
Returns the user library
Sourcepub async fn fab_library_items(
&mut self,
account_id: String,
) -> Option<FabLibrary>
pub async fn fab_library_items( &mut self, account_id: String, ) -> Option<FabLibrary>
Returns the user FAB library
Sourcepub async fn asset_download_manifests(
&self,
manifest: AssetManifest,
) -> Vec<DownloadManifest>
pub async fn asset_download_manifests( &self, manifest: AssetManifest, ) -> Vec<DownloadManifest>
Returns a DownloadManifest for a specified file manifest
Sourcepub async fn fab_download_manifest(
&self,
download_info: DownloadInfo,
distribution_point_url: &str,
) -> Result<DownloadManifest, EpicAPIError>
pub async fn fab_download_manifest( &self, download_info: DownloadInfo, distribution_point_url: &str, ) -> Result<DownloadManifest, EpicAPIError>
Return a Download Manifest for specified FAB download and url
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EpicGames
impl !RefUnwindSafe for EpicGames
impl Send for EpicGames
impl Sync for EpicGames
impl Unpin for EpicGames
impl !UnwindSafe for EpicGames
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more