pub struct AlertDialogRequest {
pub id: u32,
pub title: Option<String>,
pub message: Option<String>,
pub buttons: Vec<DialogButton>,
pub cancelable: bool,
pub sheet: bool,
pub input: Option<DialogInput>,
}Expand description
An alert, or with sheet an action sheet.
Fields§
§id: u32Echoed in the answer.
title: Option<String>Title.
message: Option<String>Message.
Buttons, or the sheet’s options.
cancelable: boolTapping outside (or the back button) dismisses it.
sheet: boolAn action sheet rather than an alert.
input: Option<DialogInput>A text field in the alert (never in an action sheet); its text comes
back with the answer as value. Platforms whose alert has no text
field show the alert without one and answer without value.
Trait Implementations§
Source§impl Clone for AlertDialogRequest
impl Clone for AlertDialogRequest
Source§impl Debug for AlertDialogRequest
impl Debug for AlertDialogRequest
Source§impl<'de> Deserialize<'de> for AlertDialogRequest
impl<'de> Deserialize<'de> for AlertDialogRequest
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 PartialEq for AlertDialogRequest
impl PartialEq for AlertDialogRequest
Source§impl Serialize for AlertDialogRequest
impl Serialize for AlertDialogRequest
impl StructuralPartialEq for AlertDialogRequest
Auto Trait Implementations§
impl Forget for AlertDialogRequest
impl Freeze for AlertDialogRequest
impl Move for AlertDialogRequest
impl RefUnwindSafe for AlertDialogRequest
impl Send for AlertDialogRequestwhere
RawVecInner: Send,
impl Sync for AlertDialogRequestwhere
RawVecInner: Sync,
impl Unpin for AlertDialogRequest
impl UnsafeUnpin for AlertDialogRequestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<DialogButton>: UnsafeUnpin,
impl UnwindSafe for AlertDialogRequestwhere
RawVecInner: UnwindSafe,
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