[][src]Struct urban_rs::Definition

pub struct Definition { /* fields omitted */ }

The struct to represent an Urban definition entry.

Example

Implementations

impl Definition[src]

Getter methods for a Definition

pub fn word(&self) -> &str[src]

The word the entry is defining

pub fn definition(&self) -> &str[src]

The body of the definition

pub fn example(&self) -> &str[src]

An example of the use of the word

pub fn author(&self) -> &str[src]

The author of the Definition entry

pub fn written_on(&self) -> &NaiveDate[src]

The date the entry was written on

pub fn defid(&self) -> Defid[src]

The id of the definition

pub fn thumbs_up(&self) -> u32[src]

The number of thumbs up the entry has

pub fn thumbs_down(&self) -> u32[src]

The number of thumbs down the entry has

A permalink to the entry

pub fn sound_urls(&self) -> &Vec<String>[src]

A list of urls to sounds of the entry

Trait Implementations

impl Clone for Definition[src]

impl Debug for Definition[src]

impl Display for Definition[src]

impl Eq for Definition[src]

impl PartialEq<Definition> for Definition[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.