[][src]Trait twitchchat::commands::Tagged

pub trait Tagged: Tag {
    fn get_as_bool(&self, key: &str) -> bool { ... }
fn get_parsed<E>(&self, key: &str) -> Option<E>
    where
        E: FromStr
, { ... } }

Tagged provides some helpers for getting tagged data out as reasonable types

Provided methods

fn get_as_bool(&self, key: &str) -> bool

Tries to get the value for key as a bool, defaults to false if not found

fn get_parsed<E>(&self, key: &str) -> Option<E> where
    E: FromStr

Tries to parse (with FromStr::from_str) the value at key

Loading content...

Implementors

impl<T> Tagged for T where
    T: Tag
[src]

fn get_as_bool(&self, key: &str) -> bool[src]

fn get_parsed<E>(&self, key: &str) -> Option<E> where
    E: FromStr
[src]

Loading content...