Trait Megalodon

Source
pub trait Megalodon {
Show 134 methods // Required methods fn register_app<'life0, 'life1, 'async_trait>( &'life0 self, client_name: String, options: &'life1 AppInputOptions, ) -> Pin<Box<dyn Future<Output = Result<AppData, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn create_app<'life0, 'life1, 'async_trait>( &'life0 self, client_name: String, options: &'life1 AppInputOptions, ) -> Pin<Box<dyn Future<Output = Result<AppData, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn fetch_access_token<'life0, 'async_trait>( &'life0 self, client_id: String, client_secret: String, code: String, redirect_uri: String, ) -> Pin<Box<dyn Future<Output = Result<TokenData, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn refresh_access_token<'life0, 'async_trait>( &'life0 self, client_id: String, client_secret: String, refresh_token: String, ) -> Pin<Box<dyn Future<Output = Result<TokenData, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn revoke_access_token<'life0, 'async_trait>( &'life0 self, client_id: String, client_secret: String, access_token: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn verify_app_credentials<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Application>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn register_account<'life0, 'async_trait>( &'life0 self, username: String, email: String, password: String, agreement: String, locale: String, reason: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Token>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn verify_account_credentials<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Account>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn update_credentials<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 UpdateCredentialsInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Account>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Account>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_account_statuses<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 GetAccountStatusesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_account_favourites<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 GetAccountFavouritesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn subscribe_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unsubscribe_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_account_followers<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 AccountFollowersInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_account_following<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 AccountFollowersInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_account_lists<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<List>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_identity_proofs<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<IdentityProof>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn follow_account<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 FollowAccountInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn unfollow_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn block_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unblock_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn mute_account<'life0, 'async_trait>( &'life0 self, id: String, notifications: bool, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unmute_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn pin_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unpin_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn set_account_note<'life0, 'async_trait>( &'life0 self, id: String, note: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_relationships<'life0, 'async_trait>( &'life0 self, ids: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Relationship>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn search_account<'life0, 'life1, 'async_trait>( &'life0 self, q: String, options: Option<&'life1 SearchAccountInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn lookup_account<'life0, 'async_trait>( &'life0 self, acct: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Account>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_bookmarks<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetBookmarksInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_favourites<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetFavouritesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_mutes<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetMutesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_blocks<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetBlocksInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_domain_blocks<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetDomainBlocksInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<String>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn block_domain<'life0, 'async_trait>( &'life0 self, domain: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unblock_domain<'life0, 'async_trait>( &'life0 self, domain: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_filters<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Filter>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_filter<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Filter>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_filter<'life0, 'life1, 'async_trait>( &'life0 self, phrase: String, context: Vec<FilterContext>, options: Option<&'life1 FilterInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Filter>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn update_filter<'life0, 'life1, 'async_trait>( &'life0 self, id: String, phrase: String, context: Vec<FilterContext>, options: Option<&'life1 FilterInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Filter>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn delete_filter<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn report<'life0, 'life1, 'async_trait>( &'life0 self, account_id: String, options: Option<&'life1 ReportInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Report>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_follow_requests<'life0, 'async_trait>( &'life0 self, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<FollowRequestOutput>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn accept_follow_request<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn reject_follow_request<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_endorsements<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetEndorsementsInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_featured_tags<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<FeaturedTag>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_featured_tag<'life0, 'async_trait>( &'life0 self, name: String, ) -> Pin<Box<dyn Future<Output = Result<Response<FeaturedTag>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_featured_tag<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_suggested_tags<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Tag>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_preferences<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Preferences>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_followed_tags<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Tag>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_suggestions<'life0, 'async_trait>( &'life0 self, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_tag<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Tag>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn follow_tag<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Tag>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unfollow_tag<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Tag>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn post_status<'life0, 'life1, 'async_trait>( &'life0 self, status: String, options: Option<&'life1 PostStatusInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<PostStatusOutput>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_status_source<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<StatusSource>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn edit_status<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: &'life1 EditStatusInputOptions, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn delete_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_status_context<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 GetStatusContextInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Context>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_status_reblogged_by<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_status_favourited_by<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn favourite_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unfavourite_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn reblog_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unreblog_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn bookmark_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unbookmark_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn mute_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unmute_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn pin_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn unpin_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn upload_media_reader<'life0, 'life1, 'async_trait>( &'life0 self, reader: Box<dyn AsyncRead + Sync + Send + Unpin>, options: Option<&'life1 UploadMediaInputOptions>, file_name: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<UploadMedia>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_media<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Attachment>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn update_media<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 UpdateMediaInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Attachment>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_poll<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Poll>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn vote_poll<'life0, 'async_trait>( &'life0 self, id: String, choices: Vec<u32>, status_id: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Poll>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_scheduled_statuses<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetScheduledStatusesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<ScheduledStatus>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_scheduled_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<ScheduledStatus>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn schedule_status<'life0, 'async_trait>( &'life0 self, id: String, scheduled_at: Option<DateTime<Utc>>, ) -> Pin<Box<dyn Future<Output = Result<Response<ScheduledStatus>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn cancel_scheduled_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_public_timeline<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetPublicTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_local_timeline<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetLocalTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_tag_timeline<'life0, 'life1, 'async_trait>( &'life0 self, hashtag: String, options: Option<&'life1 GetTagTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_home_timeline<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetHomeTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_list_timeline<'life0, 'life1, 'async_trait>( &'life0 self, list_id: String, options: Option<&'life1 GetListTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_conversation_timeline<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetConversationTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Conversation>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn delete_conversation<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_conversation<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Conversation>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_lists<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<List>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_list<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<List>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_list<'life0, 'async_trait>( &'life0 self, title: String, ) -> Pin<Box<dyn Future<Output = Result<Response<List>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn update_list<'life0, 'async_trait>( &'life0 self, id: String, title: String, ) -> Pin<Box<dyn Future<Output = Result<Response<List>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_list<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_accounts_in_list<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 GetAccountsInListInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn add_accounts_to_list<'life0, 'async_trait>( &'life0 self, id: String, account_ids: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<List>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_accounts_from_list<'life0, 'async_trait>( &'life0 self, id: String, account_ids: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_markers<'life0, 'async_trait>( &'life0 self, timeline: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Marker>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn save_markers<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 SaveMarkersInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Marker>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_notifications<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetNotificationsInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Notification>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_notification<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Notification>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn dismiss_notifications<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn dismiss_notification<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn read_notifications<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 ReadNotificationsInputOptions, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn subscribe_push_notification<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, subscription: &'life1 SubscribePushNotificationInputSubscription, data: Option<&'life2 SubscribePushNotificationInputData>, ) -> Pin<Box<dyn Future<Output = Result<Response<PushSubscription>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn get_push_subscription<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<PushSubscription>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn update_push_subscription<'life0, 'life1, 'async_trait>( &'life0 self, data: Option<&'life1 SubscribePushNotificationInputData>, ) -> Pin<Box<dyn Future<Output = Result<Response<PushSubscription>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn delete_push_subscription<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn search<'life0, 'life1, 'async_trait>( &'life0 self, q: String, options: Option<&'life1 SearchInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Results>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_instance<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Instance>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_instance_peers<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<String>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_instance_activity<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Activity>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_instance_trends<'life0, 'async_trait>( &'life0 self, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Tag>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_instance_directory<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetInstanceDirectoryInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_instance_custom_emojis<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Emoji>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_instance_announcements<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Announcement>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn dismiss_instance_announcement<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn add_reaction_to_announcement<'life0, 'async_trait>( &'life0 self, id: String, name: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn remove_reaction_from_announcement<'life0, 'async_trait>( &'life0 self, id: String, name: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn create_emoji_reaction<'life0, 'async_trait>( &'life0 self, id: String, emoji: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn delete_emoji_reaction<'life0, 'async_trait>( &'life0 self, id: String, emoji: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_emoji_reactions<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Reaction>>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn get_emoji_reaction<'life0, 'async_trait>( &'life0 self, id: String, emoji: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Reaction>, Error>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn streaming_url<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn user_streaming<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn public_streaming<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn local_streaming<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn direct_streaming<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn tag_streaming<'life0, 'async_trait>( &'life0 self, tag: String, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn list_streaming<'life0, 'async_trait>( &'life0 self, list_id: String, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; // Provided method fn upload_media<'life0, 'life1, 'async_trait>( &'life0 self, file_path: String, options: Option<&'life1 UploadMediaInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<UploadMedia>, Error>> + Send + 'async_trait>> where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait { ... }
}
Expand description

Megalodon API interface

Required Methods§

Source

fn register_app<'life0, 'life1, 'async_trait>( &'life0 self, client_name: String, options: &'life1 AppInputOptions, ) -> Pin<Box<dyn Future<Output = Result<AppData, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Register the application to get client_id and client_secret.

Source

fn create_app<'life0, 'life1, 'async_trait>( &'life0 self, client_name: String, options: &'life1 AppInputOptions, ) -> Pin<Box<dyn Future<Output = Result<AppData, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create an application.

Source

fn fetch_access_token<'life0, 'async_trait>( &'life0 self, client_id: String, client_secret: String, code: String, redirect_uri: String, ) -> Pin<Box<dyn Future<Output = Result<TokenData, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch OAuth access token. Get an access token based client_id, client_secret and authorization_code.

Source

fn refresh_access_token<'life0, 'async_trait>( &'life0 self, client_id: String, client_secret: String, refresh_token: String, ) -> Pin<Box<dyn Future<Output = Result<TokenData, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Refresh OAuth access token. Send refresh token and get new access token.

Source

fn revoke_access_token<'life0, 'async_trait>( &'life0 self, client_id: String, client_secret: String, access_token: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Revoke an access token.

Source

fn verify_app_credentials<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Application>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Test to make sure that the application token works.

Source

fn register_account<'life0, 'async_trait>( &'life0 self, username: String, email: String, password: String, agreement: String, locale: String, reason: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Token>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Register an user account.

Source

fn verify_account_credentials<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Account>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Test to make sure that the user token works.

Source

fn update_credentials<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 UpdateCredentialsInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Account>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update the user’s display and preferences.

Source

fn get_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Account>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get an account information.

Source

fn get_account_statuses<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 GetAccountStatusesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses of the account.

Source

fn get_account_favourites<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 GetAccountFavouritesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get favourited statuses of the account.

Source

fn subscribe_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Receive notifications when this account posts a status.

Source

fn unsubscribe_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Stop receiving notifications when this account posts a status.

Source

fn get_account_followers<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 AccountFollowersInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get accounts which follow the give account.

Source

fn get_account_following<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 AccountFollowersInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get accounts which the given acount is following.

Source

fn get_account_lists<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<List>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get lists of the given account.

Source

fn get_identity_proofs<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<IdentityProof>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get proofs of the given account.

Source

fn follow_account<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 FollowAccountInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Follow the given account. Can also be used to update whether to show reblogs or enable notifications.

Source

fn unfollow_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unfollow the given account.

Source

fn block_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Block the given account.

Source

fn unblock_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unblock the given account.

Source

fn mute_account<'life0, 'async_trait>( &'life0 self, id: String, notifications: bool, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Mute the given account.

Source

fn unmute_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unmute the given account.

Source

fn pin_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add the given account to the user’s featured profiles.

Source

fn unpin_account<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove the given account from the user’s featured profiles.

Source

fn set_account_note<'life0, 'async_trait>( &'life0 self, id: String, note: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Set a private note on the given account.

Source

fn get_relationships<'life0, 'async_trait>( &'life0 self, ids: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Relationship>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Find out whether a given account is followed, blocked, muted, etc.

Source

fn search_account<'life0, 'life1, 'async_trait>( &'life0 self, q: String, options: Option<&'life1 SearchAccountInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Search for matching accounts by username or display name.

Source

fn lookup_account<'life0, 'async_trait>( &'life0 self, acct: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Account>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lookup account ID from Webfinger address.

Source

fn get_bookmarks<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetBookmarksInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses the user has bookmarked.

Source

fn get_favourites<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetFavouritesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses the user has favourited.

Source

fn get_mutes<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetMutesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get accounts the user has muted.

Source

fn get_blocks<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetBlocksInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get accounts the user has blocked.

Source

fn get_domain_blocks<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetDomainBlocksInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<String>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get domains the user has blocked.

Source

fn block_domain<'life0, 'async_trait>( &'life0 self, domain: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Block a domain.

Source

fn unblock_domain<'life0, 'async_trait>( &'life0 self, domain: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove a domain block.

Source

fn get_filters<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Filter>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get all filters.

Source

fn get_filter<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Filter>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a specified filter.

Source

fn create_filter<'life0, 'life1, 'async_trait>( &'life0 self, phrase: String, context: Vec<FilterContext>, options: Option<&'life1 FilterInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Filter>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create a filter.

Source

fn update_filter<'life0, 'life1, 'async_trait>( &'life0 self, id: String, phrase: String, context: Vec<FilterContext>, options: Option<&'life1 FilterInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Filter>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update a filter.

Source

fn delete_filter<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a filter.

Source

fn report<'life0, 'life1, 'async_trait>( &'life0 self, account_id: String, options: Option<&'life1 ReportInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Report>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Report an user.

Source

fn get_follow_requests<'life0, 'async_trait>( &'life0 self, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<FollowRequestOutput>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get accounts who send follow request to the user.

Source

fn accept_follow_request<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Accept the follow request.

Source

fn reject_follow_request<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Relationship>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reject the follow request.

Source

fn get_endorsements<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetEndorsementsInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get accounts that the user is currently featuring on their profile.

Get featured tags.

Create a featured tag.

Delete a featured tag.

Source

fn get_suggested_tags<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Tag>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Shows your 10 most-used tags, with usage history for the past week.

Source

fn get_preferences<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Preferences>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get preferences defined by the user in their account settings.

Source

fn get_followed_tags<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Tag>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get all followed tags.

Source

fn get_suggestions<'life0, 'async_trait>( &'life0 self, limit: Option<u32>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get accounts the user has had past positive interactions with, but is not yet following.

Source

fn get_tag<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Tag>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a hashtag and its associated information.

Source

fn follow_tag<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Tag>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Follow a hashtag. Posts containing a followed hashtag will be inserted into your home timeline.

Source

fn unfollow_tag<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Tag>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unfollow a hashtag. Posts containing this hashtag will no longer be inserted into your home timeline.

Source

fn post_status<'life0, 'life1, 'async_trait>( &'life0 self, status: String, options: Option<&'life1 PostStatusInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<PostStatusOutput>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Post a new status.

Source

fn get_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get information about a status.

Source

fn get_status_source<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<StatusSource>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Obtain the source properties for a status so that it can be edited.

Source

fn edit_status<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: &'life1 EditStatusInputOptions, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Edit a status.

Source

fn delete_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a status of your own statuses.

Source

fn get_status_context<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 GetStatusContextInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Context>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses above and below this status in the thread.

Source

fn get_status_reblogged_by<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get accounts who boosted a given status.

Source

fn get_status_favourited_by<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get accounts who favourited a given status.

Source

fn favourite_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add a status to your favourites list.

Source

fn unfavourite_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove a status from your favourites list.

Source

fn reblog_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Reblog a status.

Source

fn unreblog_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Undo a reblog of a status.

Source

fn bookmark_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add a status to your bookmark list.

Source

fn unbookmark_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove a status from your bookmark lits.

Source

fn mute_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Do not receive notifications for the thread that this status is part of. Must be a thread in which you are a participant.

Source

fn unmute_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Start receiving notifications again for the thread that this status is part of.

Source

fn pin_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Feature one of your own public statuses at the top of your profile.

Source

fn unpin_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Unfeature a status from the top of your profile.

Source

fn upload_media_reader<'life0, 'life1, 'async_trait>( &'life0 self, reader: Box<dyn AsyncRead + Sync + Send + Unpin>, options: Option<&'life1 UploadMediaInputOptions>, file_name: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<UploadMedia>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn get_media<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Attachment>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get an Attachment.

Source

fn update_media<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 UpdateMediaInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Attachment>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update an Attachment, before it is attached to a status and posted.

Source

fn get_poll<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Poll>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a poll information.

Source

fn vote_poll<'life0, 'async_trait>( &'life0 self, id: String, choices: Vec<u32>, status_id: Option<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Poll>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Vote a poll.

Source

fn get_scheduled_statuses<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetScheduledStatusesInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<ScheduledStatus>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses which scheduled to publish later.

Source

fn get_scheduled_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<ScheduledStatus>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a scheduled status.

Source

fn schedule_status<'life0, 'async_trait>( &'life0 self, id: String, scheduled_at: Option<DateTime<Utc>>, ) -> Pin<Box<dyn Future<Output = Result<Response<ScheduledStatus>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Schedule a status to publish later.

Source

fn cancel_scheduled_status<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove the schdule to publish.

Source

fn get_public_timeline<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetPublicTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses of public timeline.

Source

fn get_local_timeline<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetLocalTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses of local timeline.

Source

fn get_tag_timeline<'life0, 'life1, 'async_trait>( &'life0 self, hashtag: String, options: Option<&'life1 GetTagTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses of tag timeline.

Source

fn get_home_timeline<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetHomeTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses of home timeline.

Source

fn get_list_timeline<'life0, 'life1, 'async_trait>( &'life0 self, list_id: String, options: Option<&'life1 GetListTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Status>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get status of list timeline.

Source

fn get_conversation_timeline<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetConversationTimelineInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Conversation>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get statuses of conversation timeline.

Source

fn delete_conversation<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a conversation.

Source

fn read_conversation<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Conversation>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Mark to read the conversation.

Source

fn get_lists<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<List>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get list timelines which you created.

Source

fn get_list<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<List>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a list timeline.

Source

fn create_list<'life0, 'async_trait>( &'life0 self, title: String, ) -> Pin<Box<dyn Future<Output = Result<Response<List>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new list timeline.

Source

fn update_list<'life0, 'async_trait>( &'life0 self, id: String, title: String, ) -> Pin<Box<dyn Future<Output = Result<Response<List>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update the list timeline.

Source

fn delete_list<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete the list timeline.

Source

fn get_accounts_in_list<'life0, 'life1, 'async_trait>( &'life0 self, id: String, options: Option<&'life1 GetAccountsInListInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get accounts which registered to the list.

Source

fn add_accounts_to_list<'life0, 'async_trait>( &'life0 self, id: String, account_ids: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<List>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Register an account to the list.

Source

fn delete_accounts_from_list<'life0, 'async_trait>( &'life0 self, id: String, account_ids: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove the account from the list.

Source

fn get_markers<'life0, 'async_trait>( &'life0 self, timeline: Vec<String>, ) -> Pin<Box<dyn Future<Output = Result<Response<Marker>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get your position in timelines.

Source

fn save_markers<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 SaveMarkersInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Marker>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Save your position in timelines.

Source

fn get_notifications<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetNotificationsInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Notification>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Notifications concerning the user.

Source

fn get_notification<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Notification>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get a notification information.

Source

fn dismiss_notifications<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clear all notifications from the server.

Source

fn dismiss_notification<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Clear a notification from the server.

Source

fn read_notifications<'life0, 'life1, 'async_trait>( &'life0 self, options: &'life1 ReadNotificationsInputOptions, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Mark as read all unread notifications.

Source

fn subscribe_push_notification<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, subscription: &'life1 SubscribePushNotificationInputSubscription, data: Option<&'life2 SubscribePushNotificationInputData>, ) -> Pin<Box<dyn Future<Output = Result<Response<PushSubscription>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Add a Web Push API subscription to receive notifications.

Source

fn get_push_subscription<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<PushSubscription>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the PushSubscription currently associated with this access token.

Source

fn update_push_subscription<'life0, 'life1, 'async_trait>( &'life0 self, data: Option<&'life1 SubscribePushNotificationInputData>, ) -> Pin<Box<dyn Future<Output = Result<Response<PushSubscription>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Updates the current push subscription.

Source

fn delete_push_subscription<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Removes the current Web Push API subscription.

Source

fn search<'life0, 'life1, 'async_trait>( &'life0 self, q: String, options: Option<&'life1 SearchInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Results>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Search for content in accounts, statuses and hashtags.

Source

fn get_instance<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Instance>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get information about the server.

Source

fn get_instance_peers<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<String>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get domains that this instance is aware of.

Source

fn get_instance_activity<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Activity>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get instance activity over the last 3 months, binned weekly.

Tags that are being used more frequently within the past week.

Source

fn get_instance_directory<'life0, 'life1, 'async_trait>( &'life0 self, options: Option<&'life1 GetInstanceDirectoryInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Account>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

List accounts visible in the directory.

Source

fn get_instance_custom_emojis<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Emoji>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns custom emojis that are available on the server.

Source

fn get_instance_announcements<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Announcement>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get all currently active announcements set by admins.

Source

fn dismiss_instance_announcement<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dismiss an announcement

Source

fn add_reaction_to_announcement<'life0, 'async_trait>( &'life0 self, id: String, name: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add a reaction to an announcement.

Source

fn remove_reaction_from_announcement<'life0, 'async_trait>( &'life0 self, id: String, name: String, ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove a reaction from an announcement.

Source

fn create_emoji_reaction<'life0, 'async_trait>( &'life0 self, id: String, emoji: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add an emoji reaction to the status.

Source

fn delete_emoji_reaction<'life0, 'async_trait>( &'life0 self, id: String, emoji: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Status>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove the emoji reaction from the status.

Source

fn get_emoji_reactions<'life0, 'async_trait>( &'life0 self, id: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Vec<Reaction>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get emoji reactions of the status.

Source

fn get_emoji_reaction<'life0, 'async_trait>( &'life0 self, id: String, emoji: String, ) -> Pin<Box<dyn Future<Output = Result<Response<Reaction>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get emoji reaction of the status.

Source

fn streaming_url<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = String> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the base URL for streaming endpoints

Source

fn user_streaming<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get user streaming object.

Source

fn public_streaming<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get public streaming object.

Source

fn local_streaming<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get local streaming object.

Source

fn direct_streaming<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get direct streaming object.

Source

fn tag_streaming<'life0, 'async_trait>( &'life0 self, tag: String, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get tag streaming object.

Source

fn list_streaming<'life0, 'async_trait>( &'life0 self, list_id: String, ) -> Pin<Box<dyn Future<Output = Box<dyn Streaming + Send + Sync>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get list streaming object.

Provided Methods§

Source

fn upload_media<'life0, 'life1, 'async_trait>( &'life0 self, file_path: String, options: Option<&'life1 UploadMediaInputOptions>, ) -> Pin<Box<dyn Future<Output = Result<Response<UploadMedia>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Creates an attachment to be used with a new status.

Implementors§