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

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