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 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]
&mut self,
asset: EpicAsset
) -> 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
Auto Trait Implementations
impl !RefUnwindSafe for EpicGames[src]
impl Send for EpicGames[src]
impl Sync for EpicGames[src]
impl Unpin for EpicGames[src]
impl !UnwindSafe for EpicGames[src]
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> 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, 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>,