pub struct LargeWidget(/* private fields */);Expand description
Type-safe and guarenteed method of making a large widget.
Implementations§
Source§impl LargeWidget
impl LargeWidget
Sourcepub fn build(self) -> Result<String>
pub fn build(self) -> Result<String>
Builds into a valid URL.
§Errors
Returns Error::InvalidUrl if one of the query parameters is invalid.
Sourcepub fn top_color(&mut self, value: impl Into<String>) -> &mut Self
pub fn top_color(&mut self, value: impl Into<String>) -> &mut Self
Sets the top color of the widget.
Sourcepub fn middle_color(&mut self, value: impl Into<String>) -> &mut Self
pub fn middle_color(&mut self, value: impl Into<String>) -> &mut Self
Sets the middle color of the widget.
Sourcepub fn username_color(&mut self, value: impl Into<String>) -> &mut Self
pub fn username_color(&mut self, value: impl Into<String>) -> &mut Self
Sets the username color of the widget.
Sourcepub fn certified_color(&mut self, value: impl Into<String>) -> &mut Self
pub fn certified_color(&mut self, value: impl Into<String>) -> &mut Self
Sets the certified color of the widget.
Sourcepub fn data_color(&mut self, value: impl Into<String>) -> &mut Self
pub fn data_color(&mut self, value: impl Into<String>) -> &mut Self
Sets the data color of the widget.
Sourcepub fn label_color(&mut self, value: impl Into<String>) -> &mut Self
pub fn label_color(&mut self, value: impl Into<String>) -> &mut Self
Sets the label color of the widget.
Trait Implementations§
Source§impl Clone for LargeWidget
impl Clone for LargeWidget
Source§fn clone(&self) -> LargeWidget
fn clone(&self) -> LargeWidget
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 moreAuto Trait Implementations§
impl Freeze for LargeWidget
impl RefUnwindSafe for LargeWidget
impl Send for LargeWidget
impl Sync for LargeWidget
impl Unpin for LargeWidget
impl UnwindSafe for LargeWidget
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