[][src]Struct roux::subreddit::Subreddit

pub struct Subreddit {
    pub name: String,
    // some fields omitted
}

Subreddit.

Fields

name: String

Name of subreddit.

Implementations

impl Subreddit[src]

pub fn new(name: &str) -> Subreddit[src]

Create a new Subreddit instance.

pub async fn moderators<'_>(
    &'_ self
) -> Result<BasicThing<Listing<ModeratorsData>>, RouxError>
[src]

Get moderators.

pub async fn hot<'_>(
    &'_ self,
    limit: u32,
    options: Option<FeedOption>
) -> Result<BasicThing<Listing<BasicThing<SubmissionsData>>>, RouxError>
[src]

Get hot posts.

pub async fn rising<'_>(
    &'_ self,
    limit: u32,
    options: Option<FeedOption>
) -> Result<BasicThing<Listing<BasicThing<SubmissionsData>>>, RouxError>
[src]

Get rising posts.

pub async fn top<'_>(
    &'_ self,
    limit: u32,
    options: Option<FeedOption>
) -> Result<BasicThing<Listing<BasicThing<SubmissionsData>>>, RouxError>
[src]

Get top posts.

pub async fn latest<'_>(
    &'_ self,
    limit: u32,
    options: Option<FeedOption>
) -> Result<BasicThing<Listing<BasicThing<SubmissionsData>>>, RouxError>
[src]

Get latest posts.

pub async fn latest_comments<'_>(
    &'_ self,
    depth: Option<u32>,
    limit: Option<u32>
) -> Result<BasicThing<Listing<BasicThing<CommentsData>>>, RouxError>
[src]

Get latest comments.

pub async fn article_comments<'_, '_>(
    &'_ self,
    article: &'_ str,
    depth: Option<u32>,
    limit: Option<u32>
) -> Result<BasicThing<Listing<BasicThing<CommentsData>>>, RouxError>
[src]

Get comments from article.

Auto Trait Implementations

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.