pub enum ButtonVariant {
Filled,
Tinted,
Outlined,
Plain,
Ghost,
Link,
Destructive,
}Expand description
Closed enum naming the design-language variants of Button. Set
per-call via Button::variant(ButtonVariant::Outlined) or
per-app default via a ComponentDefaults extension.
Variants are hints the active ButtonStyle may honour or
remap. The IntUI default RecipeButtonStyle collapses some pairs:
Tinted/Outlined → Plain look, Link → Ghost, Destructive → Filled
(the warning lives in the dialog title, not the button).
Variants§
Trait Implementations§
Source§impl Clone for ButtonVariant
impl Clone for ButtonVariant
Source§fn clone(&self) -> ButtonVariant
fn clone(&self) -> ButtonVariant
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ButtonVariant
Source§impl Debug for ButtonVariant
impl Debug for ButtonVariant
Source§impl Default for ButtonVariant
impl Default for ButtonVariant
Source§fn default() -> ButtonVariant
fn default() -> ButtonVariant
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ButtonVariant
impl<'de> Deserialize<'de> for ButtonVariant
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ButtonVariant
Source§impl Hash for ButtonVariant
impl Hash for ButtonVariant
Source§impl PartialEq for ButtonVariant
impl PartialEq for ButtonVariant
Source§impl Serialize for ButtonVariant
impl Serialize for ButtonVariant
impl StructuralPartialEq for ButtonVariant
Auto Trait Implementations§
impl Freeze for ButtonVariant
impl RefUnwindSafe for ButtonVariant
impl Send for ButtonVariant
impl Sync for ButtonVariant
impl Unpin for ButtonVariant
impl UnsafeUnpin for ButtonVariant
impl UnwindSafe for ButtonVariant
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