Struct google_discovery1::ApiMethods
source · pub struct ApiMethods<'a, C, A>where
C: 'a,
A: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on api resources.
It is not used directly, but through the Discovery
hub.
Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_discovery1 as discovery1;
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use discovery1::Discovery;
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 = Discovery::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 `get_rest(...)` and `list(...)`
// to build up your call.
let rb = hub.apis();
Implementations§
source§impl<'a, C, A> ApiMethods<'a, C, A>
impl<'a, C, A> ApiMethods<'a, C, A>
sourcepub fn get_rest(&self, api: &str, version: &str) -> ApiGetRestCall<'a, C, A>
pub fn get_rest(&self, api: &str, version: &str) -> ApiGetRestCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieve the description of a particular version of an api.
Arguments
api
- The name of the API.version
- The version of the API.
sourcepub fn list(&self) -> ApiListCall<'a, C, A>
pub fn list(&self) -> ApiListCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieve the list of APIs supported at this endpoint.
Trait Implementations§
impl<'a, C, A> MethodsBuilder for ApiMethods<'a, C, A>
Auto Trait Implementations§
impl<'a, C, A> !RefUnwindSafe for ApiMethods<'a, C, A>
impl<'a, C, A> !Send for ApiMethods<'a, C, A>
impl<'a, C, A> !Sync for ApiMethods<'a, C, A>
impl<'a, C, A> Unpin for ApiMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for ApiMethods<'a, C, A>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more