[−][src]Struct google_blogger3::PostMethods
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]
pub fn update(
&self,
request: Post,
blog_id: &str,
post_id: &str
) -> PostUpdateCall<'a, C, A>
[src]
&self,
request: Post,
blog_id: &str,
post_id: &str
) -> PostUpdateCall<'a, C, A>
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.
pub fn get_by_path(
&self,
blog_id: &str,
path: &str
) -> PostGetByPathCall<'a, C, A>
[src]
&self,
blog_id: &str,
path: &str
) -> PostGetByPathCall<'a, C, A>
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.
pub fn get(&self, blog_id: &str, post_id: &str) -> PostGetCall<'a, C, A>
[src]
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
pub fn insert(&self, request: Post, blog_id: &str) -> PostInsertCall<'a, C, A>
[src]
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.
pub fn publish(&self, blog_id: &str, post_id: &str) -> PostPublishCall<'a, C, A>
[src]
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.
pub fn delete(&self, blog_id: &str, post_id: &str) -> PostDeleteCall<'a, C, A>
[src]
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.
pub fn revert(&self, blog_id: &str, post_id: &str) -> PostRevertCall<'a, C, A>
[src]
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.
pub fn search(&self, blog_id: &str, q: &str) -> PostSearchCall<'a, C, A>
[src]
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.
pub fn patch(
&self,
request: Post,
blog_id: &str,
post_id: &str
) -> PostPatchCall<'a, C, A>
[src]
&self,
request: Post,
blog_id: &str,
post_id: &str
) -> PostPatchCall<'a, C, A>
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.
pub fn list(&self, blog_id: &str) -> PostListCall<'a, C, A>
[src]
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]
Auto Trait Implementations
impl<'a, C, A> !Send for PostMethods<'a, C, A>
impl<'a, C, A> Unpin for PostMethods<'a, C, A>
impl<'a, C, A> !Sync for PostMethods<'a, C, A>
impl<'a, C, A> !UnwindSafe for PostMethods<'a, C, A>
impl<'a, C, A> !RefUnwindSafe for PostMethods<'a, C, A>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,