Struct crates_io_api::AsyncClient[][src]

pub struct AsyncClient { /* fields omitted */ }

Asynchronous client for the crates.io API.

Methods

impl Client
[src]

Instantiate a new client.

This will fail if the underlying http client could not be created.

Retrieve a summary containing crates.io wide information.

Retrieve information of a crate.

If you require detailed information, consider using full_crate.

Retrieve download stats for a crate.

Retrieve the owners of a crate.

Load all reverse dependencies of a crate.

Note: Since the reverse dependency endpoint requires pagination, this will result in multiple requests if the crate has more than 100 reverse dependencies.

Retrieve the authors for a crate version.

Retrieve the dependencies of a crate version.

Retrieve all available information for a crate, including download stats, owners and reverse dependencies.

The all_versions argument controls the retrieval of detailed version information. If false, only the data for the latest version will be fetched, if true, detailed information for all versions will be available. Note: Each version requires two extra requests.

Retrieve a page of crates, optionally constrained by a query.

If you want to get all results without worrying about paging, use all_crates.


Retrieve all crates, optionally constrained by a query.

Note: This method fetches all pages of the result. This can result in a lot queries (100 results per query).

Retrieve all crates with all available extra information.

Note: This method fetches not only all crates, but does multiple requests for each crate to retrieve extra information.

This can result in A LOT of queries.

Trait Implementations

impl Clone for Client
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for AsyncClient

impl !Sync for AsyncClient