Struct
FileDialogRequest
pub struct FileDialogRequest { /* private fields */ }A page opening a file chooser, passed to
App::on_file_dialog.
Methods
#pub fn kind(&self) -> FileDialogKind
What the page asks to choose.
#pub fn title(&self) -> &str
The dialog’s title as the page gives it; empty for the system’s own.
#pub fn default_path(&self) -> Option<&Path>
The file name or path the dialog would start at, if any. For a picker it is the suggested name for saving.
#pub fn accept(&self) -> &[String]
What the page accepts as it wrote it, in MIME types (image/*,
text/plain) and extensions (.png). Empty when it accepts any
file.
#pub fn origin(&self) -> &Origin
The origin of the page that opens the dialog. That page is the frame that has the focus, the one whose control the user activated.
#pub fn responder(&self) -> FileDialogResponder
A responder that answers this request later from any thread once the
hook returns FileDialogDecision::Later (after the application’s
own picker closed, for example). With any other answer from the hook
the responder does nothing.
Trait implementations
impl Debug for FileDialogRequest