pub enum ConfirmStyle {
Danger,
Primary,
}Expand description
The possible styles of the confirm button on your dialog.
Variants§
Danger
Display the button with a red background on desktop, or red text on mobile.
Primary
Display the button with a green background on desktop, or blue text on mobile.
Trait Implementations§
Source§impl Clone for ConfirmStyle
impl Clone for ConfirmStyle
Source§fn clone(&self) -> ConfirmStyle
fn clone(&self) -> ConfirmStyle
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 moreSource§impl Debug for ConfirmStyle
impl Debug for ConfirmStyle
Source§impl<'de> Deserialize<'de> for ConfirmStyle
impl<'de> Deserialize<'de> for ConfirmStyle
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
Source§impl Hash for ConfirmStyle
impl Hash for ConfirmStyle
Source§impl PartialEq for ConfirmStyle
impl PartialEq for ConfirmStyle
Source§impl Serialize for ConfirmStyle
impl Serialize for ConfirmStyle
impl Copy for ConfirmStyle
impl StructuralPartialEq for ConfirmStyle
Auto Trait Implementations§
impl Freeze for ConfirmStyle
impl RefUnwindSafe for ConfirmStyle
impl Send for ConfirmStyle
impl Sync for ConfirmStyle
impl Unpin for ConfirmStyle
impl UnwindSafe for ConfirmStyle
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