urbandictionary 0.2.0

Unofficial Rust wrapper for the UrbanDictionary API
Documentation

ci-badge license-badge docs-badge

urbandictionary.rs

Unofficial Rust crate for the Urbandictionary API.

Documentation

Installation

Add the following dependency to your Cargo.toml:

urbandictionary = "0.2"

And include it in your project:

extern crate urbandictionary;

Examples

Retrieve a list of definitions for a word:

use urbandictionary::UrbanClient;

let client = UrbanClient::new();
let definitions = client.definitions("cat").unwrap();

Retrieve the top definition for a word:

use urbandictionary::UrbanClient;

let client = UrbanClient::new();
let definition = client.define("cat").unwrap();

License

License info in LICENSE.md. Long story short, ISC.