pub struct MethodMethods<'a, C>where
C: 'a,{ /* private fields */ }Expand description
A builder providing access to all free methods, which are not associated with a particular resource.
It is not used directly, but through the DomainsRDAP hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_domainsrdap1 as domainsrdap1;
use domainsrdap1::{DomainsRDAP, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let connector = hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_only()
.enable_http2()
.build();
let executor = hyper_util::rt::TokioExecutor::new();
let auth = yup_oauth2::InstalledFlowAuthenticator::with_client(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
yup_oauth2::client::CustomHyperClientBuilder::from(
hyper_util::client::legacy::Client::builder(executor).build(connector),
),
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http2()
.build()
);
let mut hub = DomainsRDAP::new(client, auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `get_domains(...)`, `get_entities(...)`, `get_help(...)`, `get_ip(...)` and `get_nameservers(...)`
// to build up your call.
let rb = hub.methods();Implementations§
Source§impl<'a, C> MethodMethods<'a, C>
impl<'a, C> MethodMethods<'a, C>
Sourcepub fn get_domains(&self) -> MethodGetDomainCall<'a, C>
pub fn get_domains(&self) -> MethodGetDomainCall<'a, C>
Create a builder to help you perform the following task:
The RDAP API recognizes this command from the RDAP specification but does not support it. The response is a formatted 501 error.
Sourcepub fn get_entities(&self) -> MethodGetEntityCall<'a, C>
pub fn get_entities(&self) -> MethodGetEntityCall<'a, C>
Create a builder to help you perform the following task:
The RDAP API recognizes this command from the RDAP specification but does not support it. The response is a formatted 501 error.
Sourcepub fn get_help(&self) -> MethodGetHelpCall<'a, C>
pub fn get_help(&self) -> MethodGetHelpCall<'a, C>
Create a builder to help you perform the following task:
Get help information for the RDAP API, including links to documentation.
Sourcepub fn get_ip(&self) -> MethodGetIpCall<'a, C>
pub fn get_ip(&self) -> MethodGetIpCall<'a, C>
Create a builder to help you perform the following task:
The RDAP API recognizes this command from the RDAP specification but does not support it. The response is a formatted 501 error.
Sourcepub fn get_nameservers(&self) -> MethodGetNameserverCall<'a, C>
pub fn get_nameservers(&self) -> MethodGetNameserverCall<'a, C>
Create a builder to help you perform the following task:
The RDAP API recognizes this command from the RDAP specification but does not support it. The response is a formatted 501 error.