8 stable releases

2.5.0 Jan 22, 2020
2.4.0 Jan 18, 2020
1.0.0 Jan 11, 2020

#347 in #video

MIT license

11KB
144 lines

logoomdb-rs

OMDb library for Rust

This is a library of tools for searching/interacting with the Online Movie Database. This is achieved through the use of a Film object that can hold certain common features of a film. For example...

use omdbrs::Film;

let NAME = String::from("Shrek");
let API_KEY = String::from("[YOUR_API_KEY]");

let film: Film = Film::from_title(NAME, API_KEY);

assert_eq!(film.get_year(), "2001");

Note: This library uses an outdated version of Reqwest.


lib.rs:

A library for interacting with the OMDb in Rust.

Interactions are mostly through the Film object, which is constructed using some information applicable to an OMDb search, and which can then be interacted with through a series of methods.

Dependencies

~27MB
~529K SLoC