pub struct PostResource<'a> { /* private fields */ }Expand description
client.post()
Implementations§
Source§impl<'a> PostResource<'a>
impl<'a> PostResource<'a>
pub fn reports(&self) -> PostReportsResource<'a>
Sourcepub fn get_linkings(&self) -> Result<Value>
pub fn get_linkings(&self) -> Result<Value>
GET /post/linkings
Use Self::get_linkings_with to pass query parameters.
§Example
let result = client.post().get_linkings()?;
println!("{:?}", result);Sourcepub fn get_linkings_with(&self, query: &GetPostLinkingsQuery) -> Result<Value>
pub fn get_linkings_with(&self, query: &GetPostLinkingsQuery) -> Result<Value>
GET /post/linkings
Like Self::get_linkings, with query parameters.
Sourcepub fn list_groups(&self) -> Result<Vec<PossiblePostGroup>>
pub fn list_groups(&self) -> Result<Vec<PossiblePostGroup>>
GET /post/groups
§Example
for group in client.post().list_groups()? {
println!("{}", group.favorite_group);
}Sourcepub fn list_search(&self) -> Result<Vec<Post>>
pub fn list_search(&self) -> Result<Vec<Post>>
GET /post/search
Search posts
Use Self::list_search_with to pass query parameters.
§Example
for search in client.post().list_search()? {
println!("{}", search.title);
}Sourcepub fn list_search_with(&self, query: &GetPostSearchQuery) -> Result<Vec<Post>>
pub fn list_search_with(&self, query: &GetPostSearchQuery) -> Result<Vec<Post>>
Trait Implementations§
Source§impl<'a> Clone for PostResource<'a>
impl<'a> Clone for PostResource<'a>
impl<'a> Copy for PostResource<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for PostResource<'a>
impl<'a> !UnwindSafe for PostResource<'a>
impl<'a> Freeze for PostResource<'a>
impl<'a> Send for PostResource<'a>
impl<'a> Sync for PostResource<'a>
impl<'a> Unpin for PostResource<'a>
impl<'a> UnsafeUnpin for PostResource<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more