Struct google_webmasters3::SitemapMethods [−][src]
pub struct SitemapMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on sitemap resources.
It is not used directly, but through the Webmasters
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_webmasters3 as webmasters3; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use webmasters3::Webmasters; 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 = Webmasters::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(...)`, `get(...)`, `list(...)` and `submit(...)` // to build up your call. let rb = hub.sitemaps();
Methods
impl<'a, C, A> SitemapMethods<'a, C, A>
[src]
impl<'a, C, A> SitemapMethods<'a, C, A>
pub fn delete(
&self,
site_url: &str,
feedpath: &str
) -> SitemapDeleteCall<'a, C, A>
[src]
pub fn delete(
&self,
site_url: &str,
feedpath: &str
) -> SitemapDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Deletes a sitemap from this site.
Arguments
siteUrl
- The site's URL, including protocol. For example: http://www.example.com/feedpath
- The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
pub fn submit(
&self,
site_url: &str,
feedpath: &str
) -> SitemapSubmitCall<'a, C, A>
[src]
pub fn submit(
&self,
site_url: &str,
feedpath: &str
) -> SitemapSubmitCall<'a, C, A>
Create a builder to help you perform the following task:
Submits a sitemap for a site.
Arguments
siteUrl
- The site's URL, including protocol. For example: http://www.example.com/feedpath
- The URL of the sitemap to add. For example: http://www.example.com/sitemap.xml
pub fn get(&self, site_url: &str, feedpath: &str) -> SitemapGetCall<'a, C, A>
[src]
pub fn get(&self, site_url: &str, feedpath: &str) -> SitemapGetCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves information about a specific sitemap.
Arguments
siteUrl
- The site's URL, including protocol. For example: http://www.example.com/feedpath
- The URL of the actual sitemap. For example: http://www.example.com/sitemap.xml
pub fn list(&self, site_url: &str) -> SitemapListCall<'a, C, A>
[src]
pub fn list(&self, site_url: &str) -> SitemapListCall<'a, C, A>
Create a builder to help you perform the following task:
Lists the sitemaps-entries submitted for this site, or included in the sitemap index file (if sitemapIndex is specified in the request).
Arguments
siteUrl
- The site's URL, including protocol. For example: http://www.example.com/
Trait Implementations
impl<'a, C, A> MethodsBuilder for SitemapMethods<'a, C, A>
[src]
impl<'a, C, A> MethodsBuilder for SitemapMethods<'a, C, A>
Auto Trait Implementations
impl<'a, C, A> !Send for SitemapMethods<'a, C, A>
impl<'a, C, A> !Send for SitemapMethods<'a, C, A>
impl<'a, C, A> !Sync for SitemapMethods<'a, C, A>
impl<'a, C, A> !Sync for SitemapMethods<'a, C, A>