Struct google_alertcenter1_beta1::AlertMethods [−][src]
pub struct AlertMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on alert resources.
It is not used directly, but through the AlertCenter
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_alertcenter1_beta1 as alertcenter1_beta1; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use alertcenter1_beta1::AlertCenter; 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 = AlertCenter::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 `delete(...)`, `feedback_create(...)`, `feedback_list(...)`, `get(...)` and `list(...)` // to build up your call. let rb = hub.alerts();
Methods
impl<'a, C, A> AlertMethods<'a, C, A>
[src]
impl<'a, C, A> AlertMethods<'a, C, A>
pub fn feedback_list(&self, alert_id: &str) -> AlertFeedbackListCall<'a, C, A>
[src]
pub fn feedback_list(&self, alert_id: &str) -> AlertFeedbackListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all the feedback for an alert.
Arguments
alertId
- Required. The alert identifier. If the alert does not exist returns a NOT_FOUND error.
pub fn get(&self, alert_id: &str) -> AlertGetCall<'a, C, A>
[src]
pub fn get(&self, alert_id: &str) -> AlertGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets the specified alert.
Arguments
alertId
- Required. The identifier of the alert to retrieve.
pub fn feedback_create(
&self,
request: AlertFeedback,
alert_id: &str
) -> AlertFeedbackCreateCall<'a, C, A>
[src]
pub fn feedback_create(
&self,
request: AlertFeedback,
alert_id: &str
) -> AlertFeedbackCreateCall<'a, C, A>
Create a builder to help you perform the following task:
Creates a new alert feedback.
Arguments
request
- No description provided.alertId
- Required. The identifier of the alert this feedback belongs to. Returns a NOT_FOUND error if no such alert.
pub fn delete(&self, alert_id: &str) -> AlertDeleteCall<'a, C, A>
[src]
pub fn delete(&self, alert_id: &str) -> AlertDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Marks the specified alert for deletion. An alert that has been marked for deletion will be excluded from the results of a List operation by default, and will be removed from the Alert Center after 30 days. Marking an alert for deletion will have no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion will return NOT_FOUND.
Arguments
alertId
- Required. The identifier of the alert to delete.
pub fn list(&self) -> AlertListCall<'a, C, A>
[src]
pub fn list(&self) -> AlertListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists all the alerts for the current user and application.
Trait Implementations
impl<'a, C, A> MethodsBuilder for AlertMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for AlertMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for AlertMethods<'a, C, A>
impl<'a, C, A> !Send for AlertMethods<'a, C, A>
impl<'a, C, A> !Sync for AlertMethods<'a, C, A>
impl<'a, C, A> !Sync for AlertMethods<'a, C, A>