[−][src]Struct roux::me::Me
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
pub async fn submit_link<'_, '_, '_, '_>(
&'_ self,
title: &'_ str,
link: &'_ str,
sr: &'_ str
) -> Result<Response, RouxError>
[src]
&'_ self,
title: &'_ str,
link: &'_ str,
sr: &'_ str
) -> Result<Response, RouxError>
Submit link
pub async fn submit_text<'_, '_, '_, '_>(
&'_ self,
title: &'_ str,
text: &'_ str,
sr: &'_ str
) -> Result<Response, RouxError>
[src]
&'_ self,
title: &'_ str,
text: &'_ str,
sr: &'_ str
) -> Result<Response, RouxError>
Submit text
pub async fn compose_message<'_, '_, '_, '_>(
&'_ self,
username: &'_ str,
subject: &'_ str,
body: &'_ str
) -> Result<Response, RouxError>
[src]
&'_ self,
username: &'_ str,
subject: &'_ str,
body: &'_ str
) -> Result<Response, RouxError>
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]
&'_ self,
ids: &'_ str
) -> Result<Response, RouxError>
Mark messages as read
pub async fn mark_unread<'_, '_>(
&'_ self,
ids: &'_ str
) -> Result<Response, RouxError>
[src]
&'_ self,
ids: &'_ str
) -> Result<Response, RouxError>
Mark messages as unread
pub async fn comment<'_, '_, '_>(
&'_ self,
text: &'_ str,
parent: &'_ str
) -> Result<Response, RouxError>
[src]
&'_ self,
text: &'_ str,
parent: &'_ str
) -> Result<Response, RouxError>
Comment
pub async fn edit<'_, '_, '_>(
&'_ self,
text: &'_ str,
parent: &'_ str
) -> Result<Response, RouxError>
[src]
&'_ self,
text: &'_ str,
parent: &'_ str
) -> Result<Response, RouxError>
Edit
pub async fn logout(self) -> Result<(), RouxError>
[src]
Logout
Auto Trait Implementations
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>,