Skip to main content

UserClient

Struct UserClient 

Source
pub struct UserClient<'a> { /* private fields */ }
Expand description

User domain API client.

Implementations§

Source§

impl<'a> UserClient<'a>

Source

pub async fn card(&self, params: UserCardParams) -> BpiResult<UserCardProfile>

Fetches public user card information.

Source

pub async fn cards( &self, params: UserCardsParams, ) -> BpiResult<Vec<UserBatchCard>>

Fetches compact public card information for one or more users.

Source

pub async fn infos( &self, params: UserInfosParams, ) -> BpiResult<Vec<UserBatchInfo>>

Fetches detailed public batch information for one or more users.

Source

pub async fn album_count( &self, params: UserAlbumCountParams, ) -> BpiResult<UserAlbumCount>

Fetches public album submission counters for a user.

Source

pub async fn bangumi_follow_list( &self, params: UserBangumiFollowListParams, ) -> BpiResult<UserBangumiFollowList>

Fetches followed bangumi or cinema seasons for a public user.

Source

pub async fn followings( &self, params: UserFollowingsParams, ) -> BpiResult<UserFollowings>

Fetches users followed by a public member.

Source

pub async fn followers( &self, params: UserFollowersParams, ) -> BpiResult<UserFollowers>

Fetches users following a public member.

Source

pub async fn follow_tags(&self) -> BpiResult<Vec<UserFollowTag>>

Fetches follow groups for the current authenticated session.

Source

pub async fn medal_wall( &self, params: UserMedalWallParams, ) -> BpiResult<UserMedalWall>

Fetches a public fan-medal wall for a user.

Source

pub async fn name_to_uid( &self, params: UserNameToUidParams, ) -> BpiResult<UserNameToUid>

Looks up member IDs by public display names.

Source

pub async fn relation_stat( &self, params: UserRelationStatParams, ) -> BpiResult<UserRelationStat>

Fetches public relation counts for a user.

Source

pub async fn nav_stat( &self, params: UserNavStatParams, ) -> BpiResult<UserNavStat>

Fetches public space navigation counters for a user.

Source

pub async fn up_stat(&self, params: UserUpStatParams) -> BpiResult<UserUpStat>

Fetches public creator statistics for a user.

Source

pub async fn space_info( &self, params: UserSpaceParams, ) -> BpiResult<UserSpaceProfile>

Fetches public user space information.

Source

pub async fn space_notice( &self, params: UserSpaceNoticeParams, ) -> BpiResult<UserSpaceNotice>

Fetches the public space notice for a user.

Source

pub async fn uploaded_videos( &self, params: UserUploadedVideosParams, ) -> BpiResult<UserUploadedVideos>

Fetches videos uploaded to a user’s public space.

Source§

impl<'a> UserClient<'a>

Source

pub async fn modify_relation( &self, params: UserModifyRelationParams, ) -> BpiResult<Option<()>>

Modifies a user relation and returns the canonical payload result.

Source§

impl<'a> UserClient<'a>

Source

pub async fn create_group_tag( &self, params: UserGroupCreateParams, ) -> BpiResult<CreateTagResponseData>

Source

pub async fn update_group_tag( &self, params: UserGroupUpdateParams, ) -> BpiResult<Option<Value>>

Source

pub async fn delete_group_tag( &self, params: UserGroupDeleteParams, ) -> BpiResult<Option<Value>>

Source

pub async fn add_group_users_to_tags( &self, params: UserGroupUsersParams, ) -> BpiResult<Option<Value>>

Source

pub async fn remove_group_users( &self, params: UserGroupUsersParams, ) -> BpiResult<Option<Value>>

Source

pub async fn copy_group_users_to_tags( &self, params: UserGroupUsersParams, ) -> BpiResult<Option<Value>>

Source

pub async fn move_group_users_to_tags( &self, params: UserGroupMoveUsersParams, ) -> BpiResult<Option<Value>>

Source§

impl<'a> UserClient<'a>

Source

pub async fn set_space_notice( &self, params: UserSpaceNoticeSetParams, ) -> BpiResult<Option<()>>

Sets the user space notice and returns the canonical payload result.

Trait Implementations§

Source§

impl<'a> Clone for UserClient<'a>

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl<'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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more