Struct omdb::query::FindQuery
[−]
[src]
pub struct FindQuery { /* fields omitted */ }
Represents a query being bulit for OMDb. Follows the Builder pattern.
Methods
impl FindQuery
[src]
fn kind(&mut self, kind: Kind) -> &mut FindQuery
Specify the kind of media.
fn year<S: ToString>(&mut self, year: S) -> &mut FindQuery
Specify the year.
fn plot(&mut self, plot: Plot) -> &mut FindQuery
Specify the plot length.
fn get(&self) -> Result<Movie, Error>
Perform OMDb Api request and attempt to find the movie
this FindQuery
is describing.