Struct google_blogger3::PageMethods
[−]
[src]
pub struct PageMethods<'a, C, A> where
C: 'a,
A: 'a, { /* fields omitted */ }
A builder providing access to all methods supported on page resources.
It is not used directly, but through the Blogger
hub.
Example
Instantiate a resource builder
extern crate hyper; extern crate hyper_rustls; extern crate yup_oauth2 as oauth2; extern crate google_blogger3 as blogger3; use std::default::Default; use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage}; use blogger3::Blogger; 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 = Blogger::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(...)`, `insert(...)`, `list(...)`, `patch(...)`, `publish(...)`, `revert(...)` and `update(...)` // to build up your call. let rb = hub.pages();
Methods
impl<'a, C, A> PageMethods<'a, C, A>
[src]
fn get(&self, blog_id: &str, page_id: &str) -> PageGetCall<'a, C, A>
Create a builder to help you perform the following task:
Gets one blog page by ID.
Arguments
blogId
- ID of the blog containing the page.pageId
- The ID of the page to get.
fn list(&self, blog_id: &str) -> PageListCall<'a, C, A>
Create a builder to help you perform the following task:
Retrieves the pages for a blog, optionally including non-LIVE statuses.
Arguments
blogId
- ID of the blog to fetch Pages from.
fn revert(&self, blog_id: &str, page_id: &str) -> PageRevertCall<'a, C, A>
Create a builder to help you perform the following task:
Revert a published or scheduled page to draft state.
Arguments
blogId
- The ID of the blog.pageId
- The ID of the page.
fn insert(&self, request: Page, blog_id: &str) -> PageInsertCall<'a, C, A>
Create a builder to help you perform the following task:
Add a page.
Arguments
request
- No description provided.blogId
- ID of the blog to add the page to.
fn patch(
&self,
request: Page,
blog_id: &str,
page_id: &str
) -> PagePatchCall<'a, C, A>
&self,
request: Page,
blog_id: &str,
page_id: &str
) -> PagePatchCall<'a, C, A>
Create a builder to help you perform the following task:
Update a page. This method supports patch semantics.
Arguments
request
- No description provided.blogId
- The ID of the Blog.pageId
- The ID of the Page.
fn publish(&self, blog_id: &str, page_id: &str) -> PagePublishCall<'a, C, A>
Create a builder to help you perform the following task:
Publishes a draft page.
Arguments
blogId
- The ID of the blog.pageId
- The ID of the page.
fn update(
&self,
request: Page,
blog_id: &str,
page_id: &str
) -> PageUpdateCall<'a, C, A>
&self,
request: Page,
blog_id: &str,
page_id: &str
) -> PageUpdateCall<'a, C, A>
Create a builder to help you perform the following task:
Update a page.
Arguments
request
- No description provided.blogId
- The ID of the Blog.pageId
- The ID of the Page.
fn delete(&self, blog_id: &str, page_id: &str) -> PageDeleteCall<'a, C, A>
Create a builder to help you perform the following task:
Delete a page by ID.
Arguments
blogId
- The ID of the Blog.pageId
- The ID of the Page.