IIIF
A rust client for the International Image Interoperability Framework.
For now only contains the Image API.
Install
[]
= "0.1.0"
Usage
A convenience fetch function is provided and will create a new client for each request, it is advised to create a reusable client and pass that to the request function for multiple requests.
Fetch and write to file
let api = new;
api.identifier;
let response = api.fetch
.await
.unwrap;
// Write to foo.jpg
response.write_to_file
.await
.expect;
Reusable client requests
let client = new;
let base = "https://ids.lib.harvard.edu/ids/iiif";
let mut images: = Vec new;
// Iterate through some images
let ids = ;
for id in ids