gutenberg-rs 0.1.1

This crate is used to get information and data from gutenberg (https://www.gutenberg.org/)
Documentation
1
2
3
4
5
6
7
8
use crate::error::Error;
use serde_json::Value;

pub trait DBCache {
    fn query(&mut self, json: &Value) -> Result<Vec<i32>, Error>;
    fn native_query(&mut self, query: &str) -> Result<Vec<i32>, Error>;
    fn get_download_links(&mut self, ids: Vec<i32>) -> Result<Vec<String>, Error>;
}