Struct roux::me::Me[][src]

pub struct Me {
    pub access_token: String,
    // some fields omitted
}

Me

Fields

access_token: String

Access token

Implementations

impl Me[src]

pub fn new(access_token: &str, config: Config) -> Me[src]

Create a new me

pub async fn me(&self) -> Result<MeData, RouxError>[src]

Get me

Submit link

pub async fn submit_text(
    &self,
    title: &str,
    text: &str,
    sr: &str
) -> Result<Response, RouxError>
[src]

Submit text

pub async fn compose_message(
    &self,
    username: &str,
    subject: &str,
    body: &str
) -> Result<Response, RouxError>
[src]

Compose message

pub async fn inbox(&self) -> Result<Inbox, RouxError>[src]

Get user’s submitted posts.

pub async fn saved(&self) -> Result<Submissions, RouxError>[src]

Get saved

pub async fn upvoted(&self) -> Result<Submissions, RouxError>[src]

Get upvoted

pub async fn downvoted(&self) -> Result<Submissions, RouxError>[src]

Get downvoted

pub async fn unread(&self) -> Result<Inbox, RouxError>[src]

Get users unread messages

pub async fn mark_read(&self, ids: &str) -> Result<Response, RouxError>[src]

Mark messages as read

pub async fn mark_unread(&self, ids: &str) -> Result<Response, RouxError>[src]

Mark messages as unread

pub async fn comment(
    &self,
    text: &str,
    parent: &str
) -> Result<Response, RouxError>
[src]

Comment

pub async fn edit(
    &self,
    text: &str,
    parent: &str
) -> Result<Response, RouxError>
[src]

Edit

pub async fn logout(self) -> Result<(), RouxError>[src]

Logout

Auto Trait Implementations

impl !RefUnwindSafe for Me

impl Send for Me

impl Sync for Me

impl Unpin for Me

impl !UnwindSafe for Me

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> Instrument 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.