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§
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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<'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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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 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,
Create a featured tag.
Sourcefn 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 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,
Delete a featured tag.
Shows your 10 most-used tags, with usage history for the past week.
Sourcefn 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_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.
Get all followed tags.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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<'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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
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,
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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<'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.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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_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,
Tags that are being used more frequently within the past week.
Sourcefn 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_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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn 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 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
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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_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.
Sourcefn 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 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.
Sourcefn streaming_url<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = String> + 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,
Get the base URL for streaming endpoints
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Sourcefn 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 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.
Provided Methods§
Sourcefn 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,
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.