pub struct WebWidgetClient<'a> { /* private fields */ }Expand description
Web 组件 API 客户端。
Implementations§
Source§impl<'a> WebWidgetClient<'a>
impl<'a> WebWidgetClient<'a>
获取分区轮播 banner 数据。
Sourcepub async fn header_page(
&self,
params: WebWidgetHeaderPageParams,
) -> BpiResult<HeaderData>
pub async fn header_page( &self, params: WebWidgetHeaderPageParams, ) -> BpiResult<HeaderData>
获取首页头图数据。
Sourcepub async fn online(&self) -> BpiResult<OnlineData>
pub async fn online(&self) -> BpiResult<OnlineData>
获取当前按分区统计的在线投稿数。
Trait Implementations§
Source§impl<'a> Clone for WebWidgetClient<'a>
impl<'a> Clone for WebWidgetClient<'a>
Source§fn clone(&self) -> WebWidgetClient<'a>
fn clone(&self) -> WebWidgetClient<'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 WebWidgetClient<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for WebWidgetClient<'a>
impl<'a> !UnwindSafe for WebWidgetClient<'a>
impl<'a> Freeze for WebWidgetClient<'a>
impl<'a> Send for WebWidgetClient<'a>
impl<'a> Sync for WebWidgetClient<'a>
impl<'a> Unpin for WebWidgetClient<'a>
impl<'a> UnsafeUnpin for WebWidgetClient<'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