DOI for Rust
Digital Object Identifier (DOI) resolver for Rust
This crate provides a simple way to resolve DOIs and retrieve metadata using the DOI APIs.
Basic Usage
The following is a basic example of using this library:
use Doi;
let doi = new;
match doi.resolve
Please refer to the API documentation for more information.
More complicated constructions can be done using the DoiBuilder struct.
Metadata
This library also provides a way to retrieve metadata for a DOI.
The metadata feature is required to use this functionality (enabled by default).
use Doi;
let doi = new;
match doi.metadata
The raw JSON metadata can be retrieved using the metadata_json method,
powered by serde_json.
use Doi;
let doi = new;
match doi.metadata_json
Blocking Requests
This library is designed to use blocking I/O,
depending on the ureq library for HTTP requests.
License
This project is licensed under the MIT license.