pub struct AlertSettings {
pub text: Option<String>,
pub secondary_text: Option<String>,
pub is_modal: bool,
pub destructive_accept: bool,
pub confirm_label: Option<String>,
pub cancel_label: Option<String>,
pub option_label: Option<String>,
pub extra_child: Option<Widget>,
}Expand description
Configuration for the alert dialog component
The configuration object provides a Default implementation for any fields you don’t want to manually specify, which is configured as such:
Fields§
§text: Option<String>Large text
secondary_text: Option<String>Optional secondary, smaller text
is_modal: boolModal dialogs freeze other windows as long they are visible
destructive_accept: boolSets color of the accept button to red if the theme supports it
confirm_label: Option<String>Text for confirm button. If None the button won’t be shown.
cancel_label: Option<String>Text for cancel button. If None the button won’t be shown.
option_label: Option<String>Text for third option button. If None the button won’t be shown.
extra_child: Option<Widget>An optional, extra widget to display below the secondary text.
Trait Implementations§
Source§impl Debug for AlertSettings
impl Debug for AlertSettings
Auto Trait Implementations§
impl Freeze for AlertSettings
impl RefUnwindSafe for AlertSettings
impl !Send for AlertSettings
impl !Sync for AlertSettings
impl Unpin for AlertSettings
impl UnwindSafe for AlertSettings
Blanket Implementations§
Source§impl<C> AsyncPosition<()> for C
impl<C> AsyncPosition<()> for C
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