Struct relm4_components::alert::AlertSettings
source · [−]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 strLarge text
secondary_text: Option<&'static str>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: &'static strText for confirm button
cancel_label: &'static strText 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
impl RefUnwindSafe for AlertSettings
impl Send for AlertSettings
impl Sync for AlertSettings
impl Unpin for AlertSettings
impl UnwindSafe for AlertSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more