pub struct Client { /* private fields */ }
Expand description

The client handling all requests.

Implementations

Creates a new client instance to be passed around.

Returns a static instance for ease of use.

Returns an Ask with the id.

Returns a Comment with the id.

Returns a Job with the id.

Returns a Poll with the id.

Returns a Poll Option with the id.

pub fn get_story(&self, id: u64) -> Result<Story, HError>

Returns a Story with the id.

Returns a User with the specified username.

Gets up to 200 of the latest Asks.

Gets up to 200 of the latest Stories.

Gets up to 200 of the latest Jobs.

Returns the latest item id, can be any of: Story, Ask, Job.

Returns up to 500 of the latest top item ids, can be any of: Story, Ask, Job.

Returns up to 500 of the latest item ids, can be any of: Story, Ask, Job.

Returns up to 500 of the latest best item ids, can be any of: Story, Ask, Job.

Returns User profiles that have changed.

Returns item ids that have changed, can be any of: Story, Ask, Job.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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

Performs the conversion.

Performs the conversion.

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.