Struct urbandictionary::UrbanClient
[−]
[src]
pub struct UrbanClient { /* fields omitted */ }
A thin wrapper around a hyper Client.
Methods
impl UrbanClient
[src]
fn new() -> Self
Creates a new UrbanClient with a hyper
Client instance.
fn define(&self, word: &str) -> Result<Option<Definition>>
Attempt to retrieve the first Definition
for a word.
fn definitions(&self, word: &str) -> Result<Response>
Attempt to retrieve the definitions of a word.
Trait Implementations
impl Debug for UrbanClient
[src]
impl Default for UrbanClient
[src]
fn default() -> UrbanClient
Returns the "default value" for a type. Read more