openlibrary-rs 0.2.2

A wrapper around openlibrary's Web API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use openlibrary_rs::search::SearchBuilder;
use openlibrary_rs::OpenlibraryRequest;

fn main() {
    let search = SearchBuilder::default()
        .query("the lord of the rings")
        .fields(vec!["title".to_string()])
        .build()
        .unwrap();

    println!("{:#?}", search.execute()["docs"]);
}