A wrapper around the [API](https://github.com/tootsuite/mastodon/blob/master/docs/Using-the-API/API.md#tag) for [Mastodon](https://mastodon.social/)
A wrapper around the [API](https://github.com/tootsuite/documentation/blob/master/docs/Using-the-API/API.md#tag) for [Mastodon](https://mastodon.social/)
/// Your mastodon application client, handles all requests to and from Mastodon.
@ -80,7 +88,7 @@ pub struct Mastodon {
client: Client,
headers: Headers,
/// Raw data about your mastodon instance.
pubdata: Data
pubdata: Data,
}
/// Raw data about mastodon app. Save `Data` using `serde` to prevent needing
@ -103,53 +111,155 @@ pub struct Data {
/// implementations might be swapped out for testing
#[allow(unused)]
pubtraitMastodonClient{
fnfavourites(&self)-> Result<Page<Status>>{unimplemented!("This method was not implemented");}
fnblocks(&self)-> Result<Page<Account>>{unimplemented!("This method was not implemented");}
fndomain_blocks(&self)-> Result<Page<String>>{unimplemented!("This method was not implemented");}
fnfollow_requests(&self)-> Result<Page<Account>>{unimplemented!("This method was not implemented");}
fnget_home_timeline(&self)-> Result<Page<Status>>{unimplemented!("This method was not implemented");}
fnget_emojis(&self)-> Result<Page<Emoji>>{unimplemented!("This method was not implemented");}
fnmutes(&self)-> Result<Page<Account>>{unimplemented!("This method was not implemented");}
fnnotifications(&self)-> Result<Page<Notification>>{unimplemented!("This method was not implemented");}
fnreports(&self)-> Result<Page<Report>>{unimplemented!("This method was not implemented");}
fnfollowers(&self,id: &str)-> Result<Page<Account>>{unimplemented!("This method was not implemented");}
fnfollowing(&self)-> Result<Account>{unimplemented!("This method was not implemented");}
fnreblogged_by(&self)-> Result<Account>{unimplemented!("This method was not implemented");}
fnfavourited_by(&self)-> Result<Account>{unimplemented!("This method was not implemented");}
fnunblock_domain(&self,domain: String)-> Result<Empty>{unimplemented!("This method was not implemented");}
fninstance(&self)-> Result<Instance>{unimplemented!("This method was not implemented");}
fnverify_credentials(&self)-> Result<Account>{unimplemented!("This method was not implemented");}
fnreport(&self,account_id: &str,status_ids: Vec<&str>,comment: String)-> Result<Report>{unimplemented!("This method was not implemented");}
fnblock_domain(&self,domain: String)-> Result<Empty>{unimplemented!("This method was not implemented");}
fnauthorize_follow_request(&self,id: &str)-> Result<Empty>{unimplemented!("This method was not implemented");}
fnreject_follow_request(&self,id: &str)-> Result<Empty>{unimplemented!("This method was not implemented");}
fnsearch(&self,q: String,resolve: bool)-> Result<SearchResult>{unimplemented!("This method was not implemented");}
fnfollows(&self,uri: Cow<'static,str>)-> Result<Account>{unimplemented!("This method was not implemented");}
fnmedia(&self,file: Cow<'static,str>)-> Result<Attachment>{unimplemented!("This method was not implemented");}
fnclear_notifications(&self)-> Result<Empty>{unimplemented!("This method was not implemented");}
fnget_account(&self,id: u64)-> Result<Account>{unimplemented!("This method was not implemented");}
fnfollow(&self,id: u64)-> Result<Account>{unimplemented!("This method was not implemented");}
fnunfollow(&self,id: u64)-> Result<Account>{unimplemented!("This method was not implemented");}
fnblock(&self,id: u64)-> Result<Account>{unimplemented!("This method was not implemented");}
fnunblock(&self,id: u64)-> Result<Account>{unimplemented!("This method was not implemented");}
fnmute(&self,id: u64)-> Result<Account>{unimplemented!("This method was not implemented");}
fnunmute(&self,id: u64)-> Result<Account>{unimplemented!("This method was not implemented");}
fnget_notification(&self,id: u64)-> Result<Notification>{unimplemented!("This method was not implemented");}
fnget_status(&self,id: u64)-> Result<Status>{unimplemented!("This method was not implemented");}
fnget_context(&self,id: u64)-> Result<Context>{unimplemented!("This method was not implemented");}
fnget_card(&self,id: u64)-> Result<Card>{unimplemented!("This method was not implemented");}
fnreblog(&self,id: u64)-> Result<Status>{unimplemented!("This method was not implemented");}
fnunreblog(&self,id: u64)-> Result<Status>{unimplemented!("This method was not implemented");}
fnfavourite(&self,id: u64)-> Result<Status>{unimplemented!("This method was not implemented");}
fnunfavourite(&self,id: u64)-> Result<Status>{unimplemented!("This method was not implemented");}
fndelete_status(&self,id: u64)-> Result<Empty>{unimplemented!("This method was not implemented");}
fnupdate_credentials(&self,changes: CredientialsBuilder)-> Result<Account>{unimplemented!("This method was not implemented");}
fnnew_status(&self,status: StatusBuilder)-> Result<Status>{unimplemented!("This method was not implemented");}
fnget_public_timeline(&self,local: bool)-> Result<Vec<Status>>{unimplemented!("This method was not implemented");}
fnget_tagged_timeline(&self,hashtag: String,local: bool)-> Result<Vec<Status>>{unimplemented!("This method was not implemented");}
fnstatuses<'a,'b: 'a,S>(&'bself,id: &'bstr,request: S)-> Result<Page<Status>>whereS: Into<Option<StatusesRequest<'a>>>{unimplemented!("This method was not implemented");}
fnrelationships(&self,ids: &[&str])-> Result<Page<Relationship>>{unimplemented!("This method was not implemented");}
fnsearch_accounts(&self,query: &str,limit: Option<u64>,following: bool)-> Result<Page<Account>>{unimplemented!("This method was not implemented");}
fnfavourites(&self)-> Result<Page<Status>>{
unimplemented!("This method was not implemented");
}
fnblocks(&self)-> Result<Page<Account>>{
unimplemented!("This method was not implemented");
}
fndomain_blocks(&self)-> Result<Page<String>>{
unimplemented!("This method was not implemented");
}
fnfollow_requests(&self)-> Result<Page<Account>>{
unimplemented!("This method was not implemented");