Struct google_blogger3::PostMethods [] [src]

pub struct PostMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on post 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(...)`, `get_by_path(...)`, `insert(...)`, `list(...)`, `patch(...)`, `publish(...)`, `revert(...)`, `search(...)` and `update(...)`
// to build up your call.
let rb = hub.posts();

Methods

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

Create a builder to help you perform the following task:

Update a post.

Arguments

  • request - No description provided.
  • blogId - The ID of the Blog.
  • postId - The ID of the Post.

Create a builder to help you perform the following task:

Retrieve a Post by Path.

Arguments

  • blogId - ID of the blog to fetch the post from.
  • path - Path of the Post to retrieve.

Create a builder to help you perform the following task:

Get a post by ID.

Arguments

  • blogId - ID of the blog to fetch the post from.
  • postId - The ID of the post

Create a builder to help you perform the following task:

Add a post.

Arguments

  • request - No description provided.
  • blogId - ID of the blog to add the post to.

Create a builder to help you perform the following task:

Publishes a draft post, optionally at the specific time of the given publishDate parameter.

Arguments

  • blogId - The ID of the Blog.
  • postId - The ID of the Post.

Create a builder to help you perform the following task:

Delete a post by ID.

Arguments

  • blogId - The ID of the Blog.
  • postId - The ID of the Post.

Create a builder to help you perform the following task:

Revert a published or scheduled post to draft state.

Arguments

  • blogId - The ID of the Blog.
  • postId - The ID of the Post.

Create a builder to help you perform the following task:

Search for a post.

Arguments

  • blogId - ID of the blog to fetch the post from.
  • q - Query terms to search this blog for matching posts.

Create a builder to help you perform the following task:

Update a post. This method supports patch semantics.

Arguments

  • request - No description provided.
  • blogId - The ID of the Blog.
  • postId - The ID of the Post.

Create a builder to help you perform the following task:

Retrieves a list of posts, possibly filtered.

Arguments

  • blogId - ID of the blog to fetch posts from.

Trait Implementations

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