pub struct Avatar {
pub src: String,
pub alt: String,
pub size: AvatarSize,
pub shape: AvatarShape,
pub fallback: String,
pub class: String,
}Fields§
§src: String§alt: String§size: AvatarSize§shape: AvatarShape§fallback: String§class: StringImplementations§
Source§impl Avatar
impl Avatar
pub fn new(src: String) -> Avatar
pub fn alt(self, alt: String) -> Avatar
pub fn size(self, size: AvatarSize) -> Avatar
pub fn shape(self, shape: AvatarShape) -> Avatar
pub fn fallback(self, fallback: String) -> Avatar
pub fn class(self, class: String) -> Avatar
pub fn render(&self) -> String
Trait Implementations§
impl StructuralPartialEq for Avatar
Auto Trait Implementations§
impl Freeze for Avatar
impl RefUnwindSafe for Avatar
impl Send for Avatar
impl Sync for Avatar
impl Unpin for Avatar
impl UnwindSafe for Avatar
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