Struct gog::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 !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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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 Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · 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