OMDb API for Rust
Search movies, tv shows, and games using The Open Movie Database.
Examples
Find by title:
let show = title
.year
.get.unwrap;
assert!;
Find by IMDb ID:
let movie = imdb_id
.get.unwrap;
assert!;
Search movies:
use Kind;
let movies = search
.kind // Optionally filter results to movies only
.get.unwrap;
assert!;
Usage
Add the crates.io omdb
dependency to your Cargo.toml file.
[]
= "*"
Include extern crate: omdb;
in your crate root.