Flair

Trait Flair 

Source
pub trait Flair: Sealed {
    type TemplateId: TemplateId;

    // Required methods
    fn background_color(&self) -> Option<Color>;
    fn template_id(&self) -> Option<Self::TemplateId>;
    fn css_class(&self) -> Option<&str>;
    fn richtext(&self) -> Option<&[Richtext]>;
    fn ty(&self) -> Option<FlairType>;
    fn text(&self) -> Option<&str>;
}

Required Associated Types§

Required Methods§

Source

fn background_color(&self) -> Option<Color>

Source

fn template_id(&self) -> Option<Self::TemplateId>

Source

fn css_class(&self) -> Option<&str>

Source

fn richtext(&self) -> Option<&[Richtext]>

Source

fn ty(&self) -> Option<FlairType>

Source

fn text(&self) -> Option<&str>

Implementors§