Struct google_games1::QuestMilestoneMethods
[−]
[src]
pub struct QuestMilestoneMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on questMilestone resources.
It is not used directly, but through the Games
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_games1 as games1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use games1::Games; let secret: ApplicationSecret = Default::default(); let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate, hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), <MemoryStorage as Default>::default(), None); let mut hub = Games::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth); // Usually you wouldn't bind this to a variable, but keep calling *CallBuilders* // like `claim(...)` // to build up your call. let rb = hub.quest_milestones();
Methods
impl<'a, C, A> QuestMilestoneMethods<'a, C, A>
[src]
fn claim(
&self,
quest_id: &str,
milestone_id: &str,
request_id: &str
) -> QuestMilestoneClaimCall<'a, C, A>
[src]
&self,
quest_id: &str,
milestone_id: &str,
request_id: &str
) -> QuestMilestoneClaimCall<'a, C, A>
Create a builder to help you perform the following task:
Report that a reward for the milestone corresponding to milestoneId for the quest corresponding to questId has been claimed by the currently authorized user.
Arguments
questId
- The ID of the quest.milestoneId
- The ID of the milestone.requestId
- A numeric ID to ensure that the request is handled correctly across retries. Your client application must generate this ID randomly.