pub enum PresentResult {
Button(i64),
Text(String),
Files(Vec<String>),
Dismissed,
}Expand description
The user’s answer to a presentation.
Variants§
Button(i64)
A dialog button at index (in spec order) was chosen.
Text(String)
A prompt was confirmed with text.
Files(Vec<String>)
One or more file locators chosen from an open/save picker (docs/files.md). Each is a
local filesystem path or, on Android save, a content:// URI.
Dismissed
Dismissed without choosing (tap-outside / Esc / cancel gesture).
Implementations§
Source§impl PresentResult
impl PresentResult
Trait Implementations§
Source§impl Clone for PresentResult
impl Clone for PresentResult
Source§fn clone(&self) -> PresentResult
fn clone(&self) -> PresentResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PresentResult
impl Debug for PresentResult
Source§impl PartialEq for PresentResult
impl PartialEq for PresentResult
Source§fn eq(&self, other: &PresentResult) -> bool
fn eq(&self, other: &PresentResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PresentResult
Auto Trait Implementations§
impl Freeze for PresentResult
impl RefUnwindSafe for PresentResult
impl Send for PresentResult
impl Sync for PresentResult
impl Unpin for PresentResult
impl UnsafeUnpin for PresentResult
impl UnwindSafe for PresentResult
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