Gog

Struct Gog 

Source
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: bool

Implementations§

Source§

impl Gog

Source

pub fn from_login_code(code: &str) -> Gog

Source

pub fn new(token: Token) -> Gog

Source

pub fn uid_string(&self) -> String

Source

pub fn uid(&self) -> i64

Source

pub fn get_user_data(&self) -> Result<UserData>

Source

pub fn get_pub_info(&self, uid: i64, expand: Vec<String>) -> Result<PubInfo>

Source

pub fn get_games(&self) -> Result<Vec<i64>>

Source

pub fn get_game_details(&self, game_id: i64) -> Result<GameDetails>

Source

pub fn download_game(&self, downloads: Vec<Download>) -> Vec<Result<Response>>

Source

pub fn hide_product(&self, game_id: i64) -> EmptyResponse

Source

pub fn reveal_product(&self, game_id: i64) -> EmptyResponse

Source

pub fn wishlist(&self) -> Result<Wishlist>

Source

pub fn add_wishlist(&self, game_id: i64) -> Result<Wishlist>

Source

pub fn rm_wishlist(&self, game_id: i64) -> Result<Wishlist>

Source

pub fn save_birthday(&self, bday: &str) -> EmptyResponse

Source

pub fn save_country(&self, country: &str) -> EmptyResponse

Source

pub fn save_currency(&self, currency: Currency) -> EmptyResponse

Source

pub fn save_language(&self, language: Language) -> EmptyResponse

Source

pub fn connect_account(&self, user_id: i64) -> Result<LinkedSteam>

Source

pub fn connect_status(&self, user_id: i64) -> Result<ConnectStatus>

Source

pub fn connect_scan(&self, user_id: i64) -> EmptyResponse

Source

pub fn connect_claim(&self, user_id: i64) -> EmptyResponse

Source

pub fn product( &self, ids: Vec<i64>, expand: Vec<String>, ) -> Result<Vec<Product>>

Source

pub fn achievements( &self, product_id: i64, user_id: i64, ) -> Result<AchievementList>

Source

pub fn add_tag(&self, product_id: i64, tag_id: i64) -> Result<bool>

Source

pub fn rm_tag(&self, product_id: i64, tag_id: i64) -> Result<bool>

Source

pub fn get_filtered_products( &self, params: FilterParams, ) -> Result<FilteredProducts>

Source

pub fn get_all_filtered_products( &self, params: FilterParams, ) -> Result<Vec<ProductDetails>>

Source

pub fn get_products( &self, params: FilterParams, ) -> Result<Vec<UnownedProductDetails>>

Source

pub fn create_tag(&self, name: &str) -> Result<i64>

Source

pub fn delete_tag(&self, tag_id: i64) -> Result<bool>

Source

pub fn newsletter_subscription(&self, enabled: bool) -> EmptyResponse

Source

pub fn promo_subscription(&self, enabled: bool) -> EmptyResponse

Source

pub fn wishlist_subscription(&self, enabled: bool) -> EmptyResponse

Source

pub fn all_subscription(&self, enabled: bool) -> Vec<EmptyResponse>

Source

pub fn game_ratings(&self) -> Result<Vec<(String, i64)>>

Source

pub fn voted_reviews(&self) -> Result<Vec<i64>>

Source

pub fn report_review(&self, review_id: i32) -> Result<bool>

Source

pub fn library_background(&self, bg: ShelfBackground) -> EmptyResponse

Source

pub fn friends(&self) -> Result<Vec<Friend>>

Source

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>>

Source

pub fn download_request_range( &self, url: impl Into<String>, start: i64, end: i64, ) -> Result<Vec<u8>>

Source

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,