Unofficial Rust crate for the Urbandictionary API.
Add the following dependency to your Cargo.toml:
toml
urbandictionary = "0.2"
And include it in your project:
rust
extern crate urbandictionary;
Retrieve a list of definitions for a word:
```rust use urbandictionary::UrbanClient;
let client = UrbanClient::new(); let definitions = client.definitions("cat").unwrap(); ```
Retrieve the top definition for a word:
```rust use urbandictionary::UrbanClient;
let client = UrbanClient::new(); let definition = client.define("cat").unwrap(); ```
License info in [LICENSE.md]. Long story short, ISC.