Struct google_calendar::settings::Settings
source · [−]pub struct Settings {
pub client: Client,
}Fields
client: ClientImplementations
sourceimpl 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.
Auto Trait Implementations
impl !RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl !UnwindSafe for Settings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
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
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more