pub struct VipClient<'a> { /* private fields */ }Expand description
VIP API 客户端。
Implementations§
Source§impl<'a> VipClient<'a>
impl<'a> VipClient<'a>
Sourcepub async fn receive_privilege(
&self,
params: VipPrivilegeReceiveParams,
) -> BpiResult<Option<Value>>
pub async fn receive_privilege( &self, params: VipPrivilegeReceiveParams, ) -> BpiResult<Option<Value>>
领取 VIP 特权券并返回标准 payload 结果。
Sourcepub async fn add_experience(&self) -> BpiResult<VipExperienceData>
pub async fn add_experience(&self) -> BpiResult<VipExperienceData>
增加每日 VIP 经验并返回标准 payload 结果。
Source§impl<'a> VipClient<'a>
impl<'a> VipClient<'a>
Sourcepub async fn center_info(
&self,
params: VipCenterInfoParams,
) -> BpiResult<VipCenterData>
pub async fn center_info( &self, params: VipCenterInfoParams, ) -> BpiResult<VipCenterData>
获取 VIP 中心信息。
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for VipClient<'a>
impl<'a> !UnwindSafe for VipClient<'a>
impl<'a> Freeze for VipClient<'a>
impl<'a> Send for VipClient<'a>
impl<'a> Sync for VipClient<'a>
impl<'a> Unpin for VipClient<'a>
impl<'a> UnsafeUnpin for VipClient<'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