pub struct SmallWidget(/* private fields */);Expand description
URL Builder for small widgets.
Implementations§
Source§impl SmallWidget
impl SmallWidget
pub fn new() -> Self
Sourcepub fn build<T>(self, bot: T) -> Result<Url, ParseError>
pub fn build<T>(self, bot: T) -> Result<Url, ParseError>
Build the widget url.
pub fn avatarbg_color<T>(self, color: T) -> Selfwhere
T: ToString,
pub fn left_color<T>(self, color: T) -> Selfwhere
T: ToString,
pub fn right_color<T>(self, color: T) -> Selfwhere
T: ToString,
pub fn lefttext_color<T>(self, color: T) -> Selfwhere
T: ToString,
pub fn righttext_color<T>(self, color: T) -> Selfwhere
T: ToString,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SmallWidget
impl RefUnwindSafe for SmallWidget
impl Send for SmallWidget
impl Sync for SmallWidget
impl Unpin for SmallWidget
impl UnwindSafe for SmallWidget
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