pub struct AvatarItem {
pub text: String,
pub variant: Option<AvatarVariant>,
pub seed: Option<String>,
pub icon: Option<Icon>,
pub blob: Option<String>,
pub status: Option<Tone>,
pub title: Option<String>,
}Expand description
One avatar of an avatars stack.
Fields§
§text: StringThe name: its first two characters are the initials.
variant: Option<AvatarVariant>The shape.
seed: Option<String>Picks the colors (default text).
icon: Option<Icon>An icon drawn instead of the initials.
blob: Option<String>A picture’s blob id.
status: Option<Tone>A status tone (not drawn in a stack).
title: Option<String>The tooltip and accessible name (default text).
Implementations§
Source§impl AvatarItem
impl AvatarItem
Sourcepub fn variant(self, variant: impl Into<AvatarVariant>) -> Self
pub fn variant(self, variant: impl Into<AvatarVariant>) -> Self
Sets the shape.
Trait Implementations§
Source§impl Clone for AvatarItem
impl Clone for AvatarItem
Source§impl Debug for AvatarItem
impl Debug for AvatarItem
Source§impl Default for AvatarItem
impl Default for AvatarItem
impl Eq for AvatarItem
Source§impl PartialEq for AvatarItem
impl PartialEq for AvatarItem
Source§impl Serialize for AvatarItem
impl Serialize for AvatarItem
impl StructuralPartialEq for AvatarItem
Auto Trait Implementations§
impl Freeze for AvatarItem
impl RefUnwindSafe for AvatarItem
impl Send for AvatarItem
impl Sync for AvatarItem
impl Unpin for AvatarItem
impl UnsafeUnpin for AvatarItem
impl UnwindSafe for AvatarItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.