pub struct Gog {
pub token: RefCell<Token>,
pub client: RefCell<Client>,
pub client_noredirect: RefCell<Client>,
pub auto_update: bool,
}Fields§
§token: RefCell<Token>§client: RefCell<Client>§client_noredirect: RefCell<Client>§auto_update: boolImplementations§
Source§impl Gog
impl Gog
pub fn from_login_code(code: &str) -> Gog
pub fn new(token: Token) -> Gog
pub fn uid_string(&self) -> String
pub fn uid(&self) -> i64
pub fn get_user_data(&self) -> Result<UserData>
pub fn get_pub_info(&self, uid: i64, expand: Vec<String>) -> Result<PubInfo>
pub fn get_games(&self) -> Result<Vec<i64>>
pub fn get_game_details(&self, game_id: i64) -> Result<GameDetails>
pub fn download_game(&self, downloads: Vec<Download>) -> Vec<Result<Response>> ⓘ
pub fn hide_product(&self, game_id: i64) -> EmptyResponse
pub fn reveal_product(&self, game_id: i64) -> EmptyResponse
pub fn wishlist(&self) -> Result<Wishlist>
pub fn add_wishlist(&self, game_id: i64) -> Result<Wishlist>
pub fn rm_wishlist(&self, game_id: i64) -> Result<Wishlist>
pub fn save_birthday(&self, bday: &str) -> EmptyResponse
pub fn save_country(&self, country: &str) -> EmptyResponse
pub fn save_currency(&self, currency: Currency) -> EmptyResponse
pub fn save_language(&self, language: Language) -> EmptyResponse
pub fn connect_account(&self, user_id: i64) -> Result<LinkedSteam>
pub fn connect_status(&self, user_id: i64) -> Result<ConnectStatus>
pub fn connect_scan(&self, user_id: i64) -> EmptyResponse
pub fn connect_claim(&self, user_id: i64) -> EmptyResponse
pub fn product( &self, ids: Vec<i64>, expand: Vec<String>, ) -> Result<Vec<Product>>
pub fn achievements( &self, product_id: i64, user_id: i64, ) -> Result<AchievementList>
pub fn add_tag(&self, product_id: i64, tag_id: i64) -> Result<bool>
pub fn rm_tag(&self, product_id: i64, tag_id: i64) -> Result<bool>
pub fn get_filtered_products( &self, params: FilterParams, ) -> Result<FilteredProducts>
pub fn get_all_filtered_products( &self, params: FilterParams, ) -> Result<Vec<ProductDetails>>
pub fn get_products( &self, params: FilterParams, ) -> Result<Vec<UnownedProductDetails>>
pub fn create_tag(&self, name: &str) -> Result<i64>
pub fn delete_tag(&self, tag_id: i64) -> Result<bool>
pub fn promo_subscription(&self, enabled: bool) -> EmptyResponse
pub fn wishlist_subscription(&self, enabled: bool) -> EmptyResponse
pub fn all_subscription(&self, enabled: bool) -> Vec<EmptyResponse> ⓘ
pub fn game_ratings(&self) -> Result<Vec<(String, i64)>>
pub fn voted_reviews(&self) -> Result<Vec<i64>>
pub fn report_review(&self, review_id: i32) -> Result<bool>
pub fn library_background(&self, bg: ShelfBackground) -> EmptyResponse
pub fn friends(&self) -> Result<Vec<Friend>>
pub fn download_request_range_at<H: Handler>( at: impl Into<String>, url: impl Into<String>, handler: H, start: i64, end: i64, ) -> Result<Easy2<H>>
pub fn download_request_range( &self, url: impl Into<String>, start: i64, end: i64, ) -> Result<Vec<u8>>
pub fn extract_data(&self, downloads: Vec<Download>) -> Result<Vec<ZipData>>
Auto Trait Implementations§
impl !Freeze for Gog
impl !RefUnwindSafe for Gog
impl Send for Gog
impl !Sync for Gog
impl Unpin for Gog
impl !UnwindSafe for Gog
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