Struct rawr::options::SelfPost [] [src]

pub struct SelfPost {
    pub title: String,
    pub text: String,
}

Options used when creating a self post. See structures::subreddit for examples of usage.

Fields

title

The title of the link post to create

text

The markdown post body.

Methods

impl SelfPost
[src]

fn new(title: &str, text: &str) -> SelfPost

Creates a new SelfPost object. The post will not be submitted until you use Subreddit.submit_text().