[−][src]Struct discord_bots::CustomizeWidget
Widget colors: https://discordbots.org/api/docs#widgets
Fields
color_map: HashMap<&'static str, String>
widget_type: Option<String>
no_avatar: bool
Methods
impl CustomizeWidget[src]
impl CustomizeWidgetpub fn new() -> Self[src]
pub fn new() -> SelfMakes a new CustomizeWidget When setting colors, make sure not to include the hash
pub fn widget_type(self, widget_type: String) -> Self[src]
pub fn widget_type(self, widget_type: String) -> SelfEither owner, status, upvotes, servers, or lib
pub fn no_avatar(self) -> Self[src]
pub fn no_avatar(self) -> Selfpub fn top_color(&mut self, top_color: &str)[src]
pub fn top_color(&mut self, top_color: &str)pub fn middle_color(&mut self, middle_color: &str)[src]
pub fn middle_color(&mut self, middle_color: &str)pub fn username_color(&mut self, username_color: &str)[src]
pub fn username_color(&mut self, username_color: &str)pub fn certified_color(&mut self, certified_color: &str)[src]
pub fn certified_color(&mut self, certified_color: &str)pub fn data_color(&mut self, data_color: &str)[src]
pub fn data_color(&mut self, data_color: &str)pub fn label_color(&mut self, label_color: &str)[src]
pub fn label_color(&mut self, label_color: &str)pub fn highlight_color(&mut self, highlight_color: &str)[src]
pub fn highlight_color(&mut self, highlight_color: &str)pub fn avatar_bg(&mut self, avatar_bg: &str)[src]
pub fn avatar_bg(&mut self, avatar_bg: &str)pub fn left_color(&mut self, left_color: &str)[src]
pub fn left_color(&mut self, left_color: &str)pub fn right_color(&mut self, right_color: &str)[src]
pub fn right_color(&mut self, right_color: &str)pub fn left_text_color(&mut self, left_text_color: &str)[src]
pub fn left_text_color(&mut self, left_text_color: &str)pub fn right_text_color(&mut self, right_text_color: &str)[src]
pub fn right_text_color(&mut self, right_text_color: &str)Auto Trait Implementations
impl Send for CustomizeWidget
impl Send for CustomizeWidgetimpl Sync for CustomizeWidget
impl Sync for CustomizeWidgetBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>🔬 This is a nightly-only experimental API. (
try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>🔬 This is a nightly-only experimental API. (
try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> Erased for T
impl<T> Erased for T