pub struct UserClient<'a> { /* private fields */ }Expand description
用户领域 API 客户端。
Implementations§
Source§impl<'a> UserClient<'a>
impl<'a> UserClient<'a>
Sourcepub async fn card(&self, params: UserCardParams) -> BpiResult<UserCardProfile>
pub async fn card(&self, params: UserCardParams) -> BpiResult<UserCardProfile>
获取公开用户名片信息。
Sourcepub async fn cards(
&self,
params: UserCardsParams,
) -> BpiResult<Vec<UserBatchCard>>
pub async fn cards( &self, params: UserCardsParams, ) -> BpiResult<Vec<UserBatchCard>>
获取一个或多个用户的精简公开名片信息。
Sourcepub async fn infos(
&self,
params: UserInfosParams,
) -> BpiResult<Vec<UserBatchInfo>>
pub async fn infos( &self, params: UserInfosParams, ) -> BpiResult<Vec<UserBatchInfo>>
获取一个或多个用户的详细公开批量信息。
Sourcepub async fn album_count(
&self,
params: UserAlbumCountParams,
) -> BpiResult<UserAlbumCount>
pub async fn album_count( &self, params: UserAlbumCountParams, ) -> BpiResult<UserAlbumCount>
获取用户公开相簿投稿计数。
Sourcepub async fn bangumi_follow_list(
&self,
params: UserBangumiFollowListParams,
) -> BpiResult<UserBangumiFollowList>
pub async fn bangumi_follow_list( &self, params: UserBangumiFollowListParams, ) -> BpiResult<UserBangumiFollowList>
获取公开用户追番或追剧的 season。
Sourcepub async fn followings(
&self,
params: UserFollowingsParams,
) -> BpiResult<UserFollowings>
pub async fn followings( &self, params: UserFollowingsParams, ) -> BpiResult<UserFollowings>
获取公开会员关注的用户。
Sourcepub async fn followers(
&self,
params: UserFollowersParams,
) -> BpiResult<UserFollowers>
pub async fn followers( &self, params: UserFollowersParams, ) -> BpiResult<UserFollowers>
获取关注公开会员的用户。
获取当前已认证会话的关注分组。
Sourcepub async fn medal_wall(
&self,
params: UserMedalWallParams,
) -> BpiResult<UserMedalWall>
pub async fn medal_wall( &self, params: UserMedalWallParams, ) -> BpiResult<UserMedalWall>
获取用户的公开粉丝勋章墙。
Sourcepub async fn name_to_uid(
&self,
params: UserNameToUidParams,
) -> BpiResult<UserNameToUid>
pub async fn name_to_uid( &self, params: UserNameToUidParams, ) -> BpiResult<UserNameToUid>
按公开显示名称查找会员 ID。
Sourcepub async fn relation_stat(
&self,
params: UserRelationStatParams,
) -> BpiResult<UserRelationStat>
pub async fn relation_stat( &self, params: UserRelationStatParams, ) -> BpiResult<UserRelationStat>
获取用户公开关系计数。
获取用户公开空间导航计数。
Sourcepub async fn up_stat(&self, params: UserUpStatParams) -> BpiResult<UserUpStat>
pub async fn up_stat(&self, params: UserUpStatParams) -> BpiResult<UserUpStat>
获取用户公开创作者统计。
Sourcepub async fn space_info(
&self,
params: UserSpaceParams,
) -> BpiResult<UserSpaceProfile>
pub async fn space_info( &self, params: UserSpaceParams, ) -> BpiResult<UserSpaceProfile>
获取公开用户空间信息。
Sourcepub async fn space_notice(
&self,
params: UserSpaceNoticeParams,
) -> BpiResult<UserSpaceNotice>
pub async fn space_notice( &self, params: UserSpaceNoticeParams, ) -> BpiResult<UserSpaceNotice>
获取用户公开空间公告。
Sourcepub async fn uploaded_videos(
&self,
params: UserUploadedVideosParams,
) -> BpiResult<UserUploadedVideos>
pub async fn uploaded_videos( &self, params: UserUploadedVideosParams, ) -> BpiResult<UserUploadedVideos>
获取用户公开空间中上传的视频。
Source§impl<'a> UserClient<'a>
impl<'a> UserClient<'a>
Sourcepub async fn modify_relation(
&self,
params: UserModifyRelationParams,
) -> BpiResult<Option<()>>
pub async fn modify_relation( &self, params: UserModifyRelationParams, ) -> BpiResult<Option<()>>
修改用户关系并返回标准 payload 结果。
Source§impl<'a> UserClient<'a>
impl<'a> UserClient<'a>
pub async fn create_group_tag( &self, params: UserGroupCreateParams, ) -> BpiResult<CreateTagResponseData>
pub async fn update_group_tag( &self, params: UserGroupUpdateParams, ) -> BpiResult<Option<Value>>
pub async fn delete_group_tag( &self, params: UserGroupDeleteParams, ) -> BpiResult<Option<Value>>
pub async fn remove_group_users( &self, params: UserGroupUsersParams, ) -> BpiResult<Option<Value>>
Source§impl<'a> UserClient<'a>
impl<'a> UserClient<'a>
Sourcepub async fn set_space_notice(
&self,
params: UserSpaceNoticeSetParams,
) -> BpiResult<Option<()>>
pub async fn set_space_notice( &self, params: UserSpaceNoticeSetParams, ) -> BpiResult<Option<()>>
设置用户空间公告并返回标准 payload 结果。
Trait Implementations§
Source§impl<'a> Clone for UserClient<'a>
impl<'a> Clone for UserClient<'a>
Source§fn clone(&self) -> UserClient<'a>
fn clone(&self) -> UserClient<'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 UserClient<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for UserClient<'a>
impl<'a> !UnwindSafe for UserClient<'a>
impl<'a> Freeze for UserClient<'a>
impl<'a> Send for UserClient<'a>
impl<'a> Sync for UserClient<'a>
impl<'a> Unpin for UserClient<'a>
impl<'a> UnsafeUnpin for UserClient<'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