logo
pub struct AlertSettings {
    pub text: &'static str,
    pub secondary_text: Option<&'static str>,
    pub is_modal: bool,
    pub destructive_accept: bool,
    pub confirm_label: &'static str,
    pub cancel_label: &'static str,
    pub option_label: Option<&'static str>,
}
Expand description

Configuration for the alert dialog component

Fields

text: &'static str

Large text

secondary_text: Option<&'static str>

Optional secondary, smaller text

is_modal: bool

Modal dialogs freeze other windows as long they are visible

destructive_accept: bool

Sets color of the accept button to red if the theme supports it

confirm_label: &'static str

Text for confirm button

cancel_label: &'static str

Text for cancel button

option_label: Option<&'static str>

Text for third option button. If None the third button won’t be created.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.