Struct postmill::Client

source ·
pub struct Client { /* private fields */ }

Implementations

Constructs a new Client. This client contains the web session.

Get the names of all the forums.

Get a list of all the urls of submissions on a page.

Get a list of all the urls of submissions on a page from now until a certain date.

Get a list of all the urls of submissions on a page.

Login as a user. This sets the session cookie and the csrf token which are bound to the user login.

source

pub fn comment_post(
    &mut self,
    forum: &str,
    post_id: u64,
    comment: &str
) -> Result<u64, Box<dyn Error>>

Comment on a forum post.

source

pub fn submit_post(
    &mut self,
    forum: &str,
    url: &str,
    title: &str,
    body: &str
) -> Result<(), Box<dyn Error>>

Submit a forum post.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.