[−][src]Struct urban_rs::Definition
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
pub fn permalink(&self) -> &str
[src]
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]
fn clone(&self) -> Definition
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,