pub struct AuthorFlair {
pub background_color: Option<Color>,
pub template_id: Option<AuthorFlairTemplateId>,
pub css_class: Option<String>,
pub richtext: Option<Vec<Richtext>>,
pub text_color: Option<FlairTextColor>,
pub ty: Option<FlairType>,
pub text: Option<String>,
}Fields§
§background_color: Option<Color>§template_id: Option<AuthorFlairTemplateId>§css_class: Option<String>§richtext: Option<Vec<Richtext>>§text_color: Option<FlairTextColor>§ty: Option<FlairType>§text: Option<String>Trait Implementations§
Source§impl Clone for AuthorFlair
impl Clone for AuthorFlair
Source§fn clone(&self) -> AuthorFlair
fn clone(&self) -> AuthorFlair
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthorFlair
impl Debug for AuthorFlair
Source§impl<'de> Deserialize<'de> for AuthorFlair
impl<'de> Deserialize<'de> for AuthorFlair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Flair for AuthorFlair
impl Flair for AuthorFlair
type TemplateId = AuthorFlairTemplateId
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>
Source§impl PartialEq for AuthorFlair
impl PartialEq for AuthorFlair
Source§impl Serialize for AuthorFlair
impl Serialize for AuthorFlair
impl StructuralPartialEq for AuthorFlair
Auto Trait Implementations§
impl Freeze for AuthorFlair
impl RefUnwindSafe for AuthorFlair
impl Send for AuthorFlair
impl Sync for AuthorFlair
impl Unpin for AuthorFlair
impl UnwindSafe for AuthorFlair
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more