[−][src]Struct mr_splashy_pants::Pants
Implementations
impl Pants
[src]
pub fn new(
user_agent: &str,
access_token: &str,
refresh_token: String,
client_id: &str,
client_password: &str
) -> Pants
[src]
user_agent: &str,
access_token: &str,
refresh_token: String,
client_id: &str,
client_password: &str
) -> Pants
pub async fn me<'_>(&'_ mut self) -> Result<MeResponse, Error>
[src]
pub async fn me_karma<'_>(&'_ mut self) -> Result<MeKarmaResponse, Error>
[src]
pub async fn me_prefs<'_>(&'_ mut self) -> Result<MePrefsResponse, Error>
[src]
pub async fn me_trophies<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn prefs_friends<'_>(
&'_ mut self
) -> Result<Vec<PrefsFriendsResponse>, Error>
[src]
&'_ mut self
) -> Result<Vec<PrefsFriendsResponse>, Error>
pub async fn prefs_blocked<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn prefs_messaging<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn prefs_trusted<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn me_friends<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn me_blocked<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn trending_subreddits<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn best<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn by_id_names<'_>(
&'_ mut self,
fullnames: Vec<String>
) -> Result<Value, Error>
[src]
&'_ mut self,
fullnames: Vec<String>
) -> Result<Value, Error>
pub async fn comments_article<'_>(
&'_ mut self,
article: String
) -> Result<Value, Error>
[src]
&'_ mut self,
article: String
) -> Result<Value, Error>
pub async fn subreddit_comments_article<'_>(
&'_ mut self,
subreddit: String,
article: String
) -> Result<Value, Error>
[src]
&'_ mut self,
subreddit: String,
article: String
) -> Result<Value, Error>
pub async fn duplicates_article<'_>(
&'_ mut self,
article: String
) -> Result<Value, Error>
[src]
&'_ mut self,
article: String
) -> Result<Value, Error>
pub async fn hot<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn subreddit_hot<'_, '_>(
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
[src]
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
pub async fn get_new<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn subreddit_new<'_, '_>(
&'_ mut self,
subreddit: &'_ str
) -> Result<Listing<Data>, Error>
[src]
&'_ mut self,
subreddit: &'_ str
) -> Result<Listing<Data>, Error>
pub fn stream_subreddit_new<'a, 'b>(
&'a mut self,
subreddit: &'a str
) -> impl Stream<Item = Data> + 'a
[src]
&'a mut self,
subreddit: &'a str
) -> impl Stream<Item = Data> + 'a
pub async fn random<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn subreddit_random<'_, '_>(
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
[src]
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
pub async fn rising<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn subreddit_rising<'_, '_>(
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
[src]
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
pub async fn controversial<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn subreddit_controversial<'_, '_>(
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
[src]
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
pub async fn top<'_>(&'_ mut self) -> Result<Value, Error>
[src]
pub async fn subreddit_top<'_, '_>(
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
[src]
&'_ mut self,
subreddit: &'_ str
) -> Result<Value, Error>
pub async fn submit<'_>(
&'_ mut self,
request_fields: ApiSubmit
) -> Result<ApiSubmitResponse, Error>
[src]
&'_ mut self,
request_fields: ApiSubmit
) -> Result<ApiSubmitResponse, Error>
pub async fn del<'_>(
&'_ mut self,
request_fields: ApiDel
) -> Result<Value, Error>
[src]
&'_ mut self,
request_fields: ApiDel
) -> Result<Value, Error>
pub async fn refresh_access_token<'_, '_>(
&'_ self,
refresh_token: &'_ str
) -> Result<RefreshToken, Error>
[src]
&'_ self,
refresh_token: &'_ str
) -> Result<RefreshToken, Error>
Auto Trait Implementations
impl !RefUnwindSafe for Pants
impl Send for Pants
impl Sync for Pants
impl Unpin for Pants
impl !UnwindSafe for Pants
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,