Struct google_gamesconfiguration1_configuration::api::AchievementConfigurationMethods [−][src]
pub struct AchievementConfigurationMethods<'a> { /* fields omitted */ }
Expand description
A builder providing access to all methods supported on achievementConfiguration resources.
It is not used directly, but through the GamesConfiguration
hub.
Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_gamesconfiguration1_configuration as gamesconfiguration1_configuration;
use std::default::Default;
use oauth2;
use gamesconfiguration1_configuration::GamesConfiguration;
let secret: oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = GamesConfiguration::new(hyper::Client::builder().build(hyper_rustls::HttpsConnector::with_native_roots()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `delete(...)`, `get(...)`, `insert(...)`, `list(...)` and `update(...)`
// to build up your call.
let rb = hub.achievement_configurations();
Implementations
Create a builder to help you perform the following task:
Delete the achievement configuration with the given ID.
Arguments
achievementId
- The ID of the achievement used by this method.
Create a builder to help you perform the following task:
Retrieves the metadata of the achievement configuration with the given ID.
Arguments
achievementId
- The ID of the achievement used by this method.
pub fn insert(
&self,
request: AchievementConfiguration,
application_id: &str
) -> AchievementConfigurationInsertCall<'a>
pub fn insert(
&self,
request: AchievementConfiguration,
application_id: &str
) -> AchievementConfigurationInsertCall<'a>
Create a builder to help you perform the following task:
Insert a new achievement configuration in this application.
Arguments
request
- No description provided.applicationId
- The application ID from the Google Play developer console.
Create a builder to help you perform the following task:
Returns a list of the achievement configurations in this application.
Arguments
applicationId
- The application ID from the Google Play developer console.
pub fn update(
&self,
request: AchievementConfiguration,
achievement_id: &str
) -> AchievementConfigurationUpdateCall<'a>
pub fn update(
&self,
request: AchievementConfiguration,
achievement_id: &str
) -> AchievementConfigurationUpdateCall<'a>
Create a builder to help you perform the following task:
Update the metadata of the achievement configuration with the given ID.
Arguments
request
- No description provided.achievementId
- The ID of the achievement used by this method.