Trait UsersApi

Source
pub trait UsersApi {
Show 20 methods // Required methods fn get_user<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<User>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_by_username<'life0, 'life1, 'async_trait>( &'life0 self, username: &'life1 str, ) -> Pin<Box<dyn Future<Output = ClientResult<User>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_user_comments<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<Comment>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_emails<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<UserEmail>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_featured_profiles<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<User>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_followers<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<User>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_followings<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<User>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_likes<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<LikeItem>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_related_artists<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<User>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_reposts<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<RepostItem>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_streams<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<StreamItem>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_tracks<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<BasicTrack>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_popular_tracks<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<BasicTrack>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_albums<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<BasicAlbumPlaylist>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_playlists<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<BasicAlbumPlaylist>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_links<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<WebProfile>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_user_conversations<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<Conversation>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_conversation_messages<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, conversation_id: u64, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<Message>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_unread_conversations<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<Conversation>>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn extract_user_id<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<u64>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}

Required Methods§

Source

fn get_user<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<User>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the user with the given user_id.

Source

fn get_user_by_username<'life0, 'life1, 'async_trait>( &'life0 self, username: &'life1 str, ) -> Pin<Box<dyn Future<Output = ClientResult<User>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Returns the user with the given username.

Source

fn get_user_comments<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<Comment>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get comments by this user.

Source

fn get_user_emails<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<UserEmail>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user’s email addresses. ! Needs authentication.

Get profiles featured by this user.

Source

fn get_user_followers<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<User>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get followers of this user.

Source

fn get_user_followings<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<User>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get users followed by this user.

Source

fn get_user_likes<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<LikeItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user’s likes.

Get artists related to this user.

Source

fn get_user_reposts<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<RepostItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user’s reposts.

Source

fn get_user_streams<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<StreamItem>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user’s streams

Source

fn get_user_tracks<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<BasicTrack>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user’s tracks.

Get user’s popular tracks

Source

fn get_user_albums<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<BasicAlbumPlaylist>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user’s albums.

Source

fn get_user_playlists<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<BasicAlbumPlaylist>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user’s playlists.

Get user’s links.

Source

fn get_user_conversations<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<Conversation>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user’s conversations ! Needs authentication.

Source

fn get_conversation_messages<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, conversation_id: u64, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<Message>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get conversation messages. ! Needs authentication.

Source

fn get_unread_conversations<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<Vec<Conversation>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get unread conversations ! Needs authentication.

Source

fn extract_user_id<'life0, 'async_trait>( &'life0 self, user_id: ResourceId, ) -> Pin<Box<dyn Future<Output = ClientResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Extracts the user id from the given user_id.

Implementors§