Struct google_books1::api::MyconfigMethods
source · pub struct MyconfigMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on myconfig resources.
It is not used directly, but through the Books
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_books1 as books1;
use std::default::Default;
use books1::{Books, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = Books::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `get_user_settings(...)`, `release_download_access(...)`, `request_access(...)`, `sync_volume_licenses(...)` and `update_user_settings(...)`
// to build up your call.
let rb = hub.myconfig();
Implementations§
source§impl<'a, S> MyconfigMethods<'a, S>
impl<'a, S> MyconfigMethods<'a, S>
sourcepub fn get_user_settings(&self) -> MyconfigGetUserSettingCall<'a, S>
pub fn get_user_settings(&self) -> MyconfigGetUserSettingCall<'a, S>
Create a builder to help you perform the following task:
Gets the current settings for the user.
sourcepub fn release_download_access(
&self,
cpksver: &str,
volume_ids: &Vec<String>
) -> MyconfigReleaseDownloadAccesCall<'a, S>
pub fn release_download_access( &self, cpksver: &str, volume_ids: &Vec<String> ) -> MyconfigReleaseDownloadAccesCall<'a, S>
Create a builder to help you perform the following task:
Release downloaded content access restriction.
§Arguments
cpksver
- The device/version ID from which to release the restriction.volumeIds
- The volume(s) to release restrictions for.
sourcepub fn request_access(
&self,
cpksver: &str,
nonce: &str,
source: &str,
volume_id: &str
) -> MyconfigRequestAccesCall<'a, S>
pub fn request_access( &self, cpksver: &str, nonce: &str, source: &str, volume_id: &str ) -> MyconfigRequestAccesCall<'a, S>
Create a builder to help you perform the following task:
Request concurrent and download access restrictions.
§Arguments
cpksver
- The device/version ID from which to request the restrictions.nonce
- The client nonce value.source
- String to identify the originator of this request.volumeId
- The volume to request concurrent/download restrictions for.
sourcepub fn sync_volume_licenses(
&self,
cpksver: &str,
nonce: &str,
source: &str
) -> MyconfigSyncVolumeLicenseCall<'a, S>
pub fn sync_volume_licenses( &self, cpksver: &str, nonce: &str, source: &str ) -> MyconfigSyncVolumeLicenseCall<'a, S>
Create a builder to help you perform the following task:
Request downloaded content access for specified volumes on the My eBooks shelf.
§Arguments
cpksver
- The device/version ID from which to release the restriction.nonce
- The client nonce value.source
- String to identify the originator of this request.
sourcepub fn update_user_settings(
&self,
request: Usersettings
) -> MyconfigUpdateUserSettingCall<'a, S>
pub fn update_user_settings( &self, request: Usersettings ) -> MyconfigUpdateUserSettingCall<'a, S>
Create a builder to help you perform the following task:
Sets the settings for the user. If a sub-object is specified, it will overwrite the existing sub-object stored in the server. Unspecified sub-objects will retain the existing value.
§Arguments
request
- No description provided.