Module isbnid::isbn [] [src]

isbnid-rs Rust ISBN identifier library

isbnid is a simple crate to handle ISBN identification numbers. isbnid will store, check and convert ISBNs in ISBN10, and ISBN13 formats and it will transform between them and output in URN form. isbnid can also output ISBN numbers with the correct hyphens corresponding to the actual issuance authorities. The information is retrieved from https://www.isbn-international.org/. ISBN numbers have a complex internal structure which roughly represents the country, the language and the publisher. See also https://en.wikipedia.org/wiki/ISBN.

Install

You can find this crate on crates.io and it can be used by adding isbnid to the dependencies in your project's Cargo.toml and root file.

[dependencies]
isbnid = "0.1.0"

Usage

extern crate isbnid;

use isbnid::isbn;

let id = isbn::ISBN("9780553109535").unwrap();
println!("{}", id.isbn10());
println!("{}", id.isbn13());
0553109537
9780553109535

Structs

ISBN

Enums

ISBNError