[][src]Struct google_blogger3::PageMethods

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();

Implementations

impl<'a, C, A> PageMethods<'a, C, A>[src]

pub fn get(&self, blog_id: &str, page_id: &str) -> PageGetCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Gets a page by blog id and page id.

Arguments

  • blogId - No description provided.
  • pageId - No description provided.

pub fn list(&self, blog_id: &str) -> PageListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Lists pages.

Arguments

  • blogId - No description provided.

pub fn revert(&self, blog_id: &str, page_id: &str) -> PageRevertCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Reverts a published or scheduled page to draft state.

Arguments

  • blogId - No description provided.
  • pageId - No description provided.

pub fn insert(&self, request: Page, blog_id: &str) -> PageInsertCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Inserts a page.

Arguments

  • request - No description provided.
  • blogId - No description provided.

pub fn patch(
    &self,
    request: Page,
    blog_id: &str,
    page_id: &str
) -> PagePatchCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Patches a page.

Arguments

  • request - No description provided.
  • blogId - No description provided.
  • pageId - No description provided.

pub fn publish(&self, blog_id: &str, page_id: &str) -> PagePublishCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Publishes a page.

Arguments

  • blogId - No description provided.
  • pageId - No description provided.

pub fn update(
    &self,
    request: Page,
    blog_id: &str,
    page_id: &str
) -> PageUpdateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates a page by blog id and page id.

Arguments

  • request - No description provided.
  • blogId - No description provided.
  • pageId - No description provided.

pub fn delete(&self, blog_id: &str, page_id: &str) -> PageDeleteCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Deletes a page by blog id and page id.

Arguments

  • blogId - No description provided.
  • pageId - No description provided.

Trait Implementations

impl<'a, C, A> MethodsBuilder for PageMethods<'a, C, A>[src]

Auto Trait Implementations

impl<'a, C, A> !RefUnwindSafe for PageMethods<'a, C, A>

impl<'a, C, A> !Send for PageMethods<'a, C, A>

impl<'a, C, A> !Sync for PageMethods<'a, C, A>

impl<'a, C, A> Unpin for PageMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for PageMethods<'a, C, A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any