Struct rraw::me::Me [−][src]
pub struct Me { pub oauth: bool, // some fields omitted }
Expand description
This is who you are. This is your identity and you access point to the Reddit API
Fields
oauth: bool
Implementations
Logs into Reddit and Returns a Me
pub async fn get_authenticator(
&self
) -> MutexGuard<'_, Box<dyn Authenticator + Send + 'static>>
pub async fn get_authenticator(
&self
) -> MutexGuard<'_, Box<dyn Authenticator + Send + 'static>>
Gets the authenticator. Internal use
Creates a subreddit object. However, this will not tell you if the user exists.
Creates a user object. However, this will not tell you if the user exists.
Makes a get request with Reqwest response
Makes a post request with Reqwest response
Makes a get request with JSON response
Makes a post request with JSON response
Handles a Response from Reqwest mainly for internal use
pub async fn search_subreddits(
&self,
name: String,
limit: Option<u64>,
feed: Option<FeedOption>
) -> Result<Subreddits, APIError>
pub async fn search_subreddits(
&self,
name: String,
limit: Option<u64>,
feed: Option<FeedOption>
) -> Result<Subreddits, APIError>
Searches Reddit for subreddits
pub async fn search_users(
&self,
name: String,
limit: Option<u64>,
feed: Option<FeedOption>
) -> Result<Users, APIError>
pub async fn search_users(
&self,
name: String,
limit: Option<u64>,
feed: Option<FeedOption>
) -> Result<Users, APIError>
Searches Reddit for Users