pub struct Alert {
pub title: String,
pub message: Option<String>,
pub buttons: Vec<String>,
pub style: AlertStyle,
}Expand description
A message with buttons. The reply is the index of the chosen button.
Fields§
§title: String§message: Option<String>In order of importance: the first is the default (Return) button.
style: AlertStyleImplementations§
Trait Implementations§
impl StructuralPartialEq for Alert
Auto Trait Implementations§
impl Freeze for Alert
impl RefUnwindSafe for Alert
impl Send for Alert
impl Sync for Alert
impl Unpin for Alert
impl UnsafeUnpin for Alert
impl UnwindSafe for Alert
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