Struct imdb_async::Client[][src]

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

A client to IMDB’s dataset

Implementations

Instantiates a new Client

Returns a single Title by ID.

Returns a list of Titles given a list of IDs. Missing IDs are ignored; Error::NotFound is not returned.

Streams all Titles from persistent storage. In relational database parlance, this is analogous to a tablescan.

Looks up a Movie by name and year. This is slow, as the cache is not keyed on those fields; a tablescan is performed. Returns Ok(None) if no match is found, not Error::NotFound.

Returns a single Movie by ID.

Returns a list of Movies given a list of IDs. Missing IDs are ignored; Error::NotFound is not returned.

Streams all Movies from persistnet storage. In relational database parlance, this is analogous to a tablescan.

Looks up a Show by name and year. This is slow, as the cache is not keyed on those fields; a tablescan is performed. Returns Ok(None) if not match is found, not Error::NotFound.

Returns a list of Shows given a list of IDs. Missing IDs are ignored; Error::NotFound is not returned.

Returns a single Show by ID.

Returns a map<ID, Show> given a list of IDs. Missing IDs are ignored; Error::NotFound is not returned.

Returns a map<Show ID, Vec<Episode>> given a list of Show IDs. Missing IDs are ignored; Error::NotFound is not returned.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more