#[non_exhaustive]pub struct DialogReply {
pub index: i32,
pub value: Option<String>,
}Expand description
What the platform answered a dialog with (DialogAnswer).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: i32The index of the button pressed, -1 when it closed without one.
value: Option<String>The text of its text field ([crate::Dialog::input]); None
without one, where the platform’s alert has none, or when the app
closed it (DialogCloser).
Implementations§
Source§impl DialogReply
impl DialogReply
Trait Implementations§
Source§impl Clone for DialogReply
impl Clone for DialogReply
Source§impl Debug for DialogReply
impl Debug for DialogReply
Source§impl Default for DialogReply
impl Default for DialogReply
impl Eq for DialogReply
Source§impl PartialEq for DialogReply
impl PartialEq for DialogReply
impl StructuralPartialEq for DialogReply
Auto Trait Implementations§
impl Forget for DialogReply
impl Freeze for DialogReply
impl Move for DialogReply
impl RefUnwindSafe for DialogReply
impl Send for DialogReplywhere
RawVecInner: Send,
impl Sync for DialogReplywhere
RawVecInner: Sync,
impl Unpin for DialogReply
impl UnsafeUnpin for DialogReply
impl UnwindSafe for DialogReplywhere
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