Struct google_calendar::settings::Settings
source · pub struct Settings {
pub client: Client,
}Fields§
§client: ClientImplementations§
source§impl Settings
impl Settings
sourcepub async fn list(
&self,
max_results: i64,
page_token: &str
) -> Result<Vec<Setting>>
pub async fn list( &self, max_results: i64, page_token: &str ) -> Result<Vec<Setting>>
This function performs a GET to the /users/me/settings endpoint.
Returns all user settings for the authenticated user.
Parameters:
max_results: i64– Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.page_token: &str– Token specifying which result page to return. Optional.sync_token: &str– Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization. Optional. The default is to return all entries.
sourcepub async fn list_all(&self) -> Result<Vec<Setting>>
pub async fn list_all(&self) -> Result<Vec<Setting>>
This function performs a GET to the /users/me/settings endpoint.
As opposed to list, this function returns all the pages of the request at once.
Returns all user settings for the authenticated user.
sourcepub async fn watch(
&self,
max_results: i64,
page_token: &str,
body: &Channel
) -> Result<Channel>
pub async fn watch( &self, max_results: i64, page_token: &str, body: &Channel ) -> Result<Channel>
This function performs a POST to the /users/me/settings/watch endpoint.
Watch for changes to Settings resources.
Parameters:
max_results: i64– Maximum number of entries returned on one result page. By default the value is 100 entries. The page size can never be larger than 250 entries. Optional.page_token: &str– Token specifying which result page to return. Optional.sync_token: &str– Token obtained from the nextSyncToken field returned on the last page of results from the previous list request. It makes the result of this list request contain only entries that have changed since then. If the syncToken expires, the server will respond with a 410 GONE response code and the client should clear its storage and perform a full synchronization without any syncToken. Learn more about incremental synchronization. Optional. The default is to return all entries.