pub struct ArticleClient<'a> { /* private fields */ }Expand description
Article API client.
Implementations§
Source§impl<'a> ArticleClient<'a>
impl<'a> ArticleClient<'a>
Sourcepub async fn like(&self, params: ArticleLikeParams) -> BpiResult<Option<Value>>
pub async fn like(&self, params: ArticleLikeParams) -> BpiResult<Option<Value>>
Likes or unlikes an article and returns the canonical payload result.
Sourcepub async fn coin(
&self,
params: ArticleCoinParams,
) -> BpiResult<CoinResponseData>
pub async fn coin( &self, params: ArticleCoinParams, ) -> BpiResult<CoinResponseData>
Gives coins to an article and returns the canonical payload result.
Sourcepub async fn favorite(
&self,
params: ArticleFavoriteParams,
) -> BpiResult<Option<Value>>
pub async fn favorite( &self, params: ArticleFavoriteParams, ) -> BpiResult<Option<Value>>
Favorites an article and returns the canonical payload result.
Sourcepub async fn unfavorite(
&self,
params: ArticleFavoriteParams,
) -> BpiResult<Option<Value>>
pub async fn unfavorite( &self, params: ArticleFavoriteParams, ) -> BpiResult<Option<Value>>
Removes an article from favorites and returns the canonical payload result.
Source§impl<'a> ArticleClient<'a>
impl<'a> ArticleClient<'a>
Sourcepub async fn info(
&self,
params: ArticleInfoParams,
) -> BpiResult<ArticleInfoData>
pub async fn info( &self, params: ArticleInfoParams, ) -> BpiResult<ArticleInfoData>
Gets article summary information.
Sourcepub async fn view(
&self,
params: ArticleViewParams,
) -> BpiResult<ArticleViewData>
pub async fn view( &self, params: ArticleViewParams, ) -> BpiResult<ArticleViewData>
Gets article content.
Sourcepub async fn cards(&self, params: ArticleCardsParams) -> BpiResult<CardData>
pub async fn cards(&self, params: ArticleCardsParams) -> BpiResult<CardData>
Gets article, video, or live cards referenced by article content.
Sourcepub async fn articles(
&self,
params: ArticleArticlesInfoParams,
) -> BpiResult<ArticlesData>
pub async fn articles( &self, params: ArticleArticlesInfoParams, ) -> BpiResult<ArticlesData>
Gets article list information.
Trait Implementations§
Source§impl<'a> Clone for ArticleClient<'a>
impl<'a> Clone for ArticleClient<'a>
Source§fn clone(&self) -> ArticleClient<'a>
fn clone(&self) -> ArticleClient<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for ArticleClient<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ArticleClient<'a>
impl<'a> !UnwindSafe for ArticleClient<'a>
impl<'a> Freeze for ArticleClient<'a>
impl<'a> Send for ArticleClient<'a>
impl<'a> Sync for ArticleClient<'a>
impl<'a> Unpin for ArticleClient<'a>
impl<'a> UnsafeUnpin for ArticleClient<'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