pub struct ArticleClient<'a> { /* private fields */ }Expand description
专栏 API 客户端。
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>>
点赞或取消点赞专栏,并返回标准 payload 结果。
Sourcepub async fn coin(
&self,
params: ArticleCoinParams,
) -> BpiResult<CoinResponseData>
pub async fn coin( &self, params: ArticleCoinParams, ) -> BpiResult<CoinResponseData>
给专栏投币并返回标准 payload 结果。
Sourcepub async fn favorite(
&self,
params: ArticleFavoriteParams,
) -> BpiResult<Option<Value>>
pub async fn favorite( &self, params: ArticleFavoriteParams, ) -> BpiResult<Option<Value>>
收藏专栏并返回标准 payload 结果。
Sourcepub async fn unfavorite(
&self,
params: ArticleFavoriteParams,
) -> BpiResult<Option<Value>>
pub async fn unfavorite( &self, params: ArticleFavoriteParams, ) -> BpiResult<Option<Value>>
从收藏中移除专栏,并返回标准 payload 结果。
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>
获取专栏概要信息。
Sourcepub async fn view(
&self,
params: ArticleViewParams,
) -> BpiResult<ArticleViewData>
pub async fn view( &self, params: ArticleViewParams, ) -> BpiResult<ArticleViewData>
获取专栏内容。
Sourcepub async fn cards(&self, params: ArticleCardsParams) -> BpiResult<CardData>
pub async fn cards(&self, params: ArticleCardsParams) -> BpiResult<CardData>
获取专栏内容引用的专栏、视频或直播卡片。
Sourcepub async fn articles(
&self,
params: ArticleArticlesInfoParams,
) -> BpiResult<ArticlesData>
pub async fn articles( &self, params: ArticleArticlesInfoParams, ) -> BpiResult<ArticlesData>
获取专栏列表信息。
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