Struct egs_api::EpicGames [−][src]
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]
&mut self,
platform: Option<String>,
label: Option<String>,
namespace: Option<String>,
item_id: Option<String>,
app: Option<String>
) -> Option<AssetManifest>
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]
&mut self,
include_metadata: bool
) -> Option<Library>
Returns the user library
pub async fn get_asset_download_manifest(
&self,
manifest: Manifest
) -> Result<DownloadManifest, EpicAPIError>
[src]
&self,
manifest: Manifest
) -> Result<DownloadManifest, EpicAPIError>
Returns a DownloadManifest for a specified file manifest
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for EpicGames
impl Send for EpicGames
impl Sync for EpicGames
impl Unpin for EpicGames
impl !UnwindSafe for EpicGames
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,