[][src]Struct mr_splashy_pants::Pants

pub struct Pants { /* fields omitted */ }

Implementations

impl Pants[src]

pub fn new(
    user_agent: &str,
    access_token: &str,
    refresh_token: String,
    client_id: &str,
    client_password: &str
) -> Pants
[src]

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]

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]

pub async fn comments_article<'_>(
    &'_ mut self,
    article: String
) -> Result<Value, Error>
[src]

pub async fn subreddit_comments_article<'_>(
    &'_ mut self,
    subreddit: String,
    article: String
) -> Result<Value, Error>
[src]

pub async fn duplicates_article<'_>(
    &'_ mut self,
    article: String
) -> Result<Value, Error>
[src]

pub async fn hot<'_>(&'_ mut self) -> Result<Value, Error>[src]

pub async fn subreddit_hot<'_, '_>(
    &'_ mut self,
    subreddit: &'_ str
) -> Result<Value, Error>
[src]

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]

pub fn stream_subreddit_new<'a, 'b>(
    &'a mut self,
    subreddit: &'a str
) -> impl Stream<Item = Data> + 'a
[src]

pub async fn random<'_>(&'_ mut self) -> Result<Value, Error>[src]

pub async fn subreddit_random<'_, '_>(
    &'_ mut self,
    subreddit: &'_ str
) -> Result<Value, Error>
[src]

pub async fn rising<'_>(&'_ mut self) -> Result<Value, Error>[src]

pub async fn subreddit_rising<'_, '_>(
    &'_ mut self,
    subreddit: &'_ str
) -> Result<Value, Error>
[src]

pub async fn controversial<'_>(&'_ mut self) -> Result<Value, Error>[src]

pub async fn subreddit_controversial<'_, '_>(
    &'_ mut self,
    subreddit: &'_ str
) -> Result<Value, Error>
[src]

pub async fn top<'_>(&'_ mut self) -> Result<Value, Error>[src]

pub async fn subreddit_top<'_, '_>(
    &'_ mut self,
    subreddit: &'_ str
) -> Result<Value, Error>
[src]

pub async fn submit<'_>(
    &'_ mut self,
    request_fields: ApiSubmit
) -> Result<ApiSubmitResponse, Error>
[src]

pub async fn del<'_>(
    &'_ mut self,
    request_fields: ApiDel
) -> Result<Value, Error>
[src]

pub async fn refresh_access_token<'_, '_>(
    &'_ self,
    refresh_token: &'_ str
) -> Result<RefreshToken, Error>
[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.