# Struct `kurogane::FileDialogRequest`

```rust
pub struct FileDialogRequest { /* private fields */ }
```

A page opening a file chooser, passed to
[`App::on_file_dialog`](https://kurogane-rs.org/docs/api/app/app.md#method.on_file_dialog).

[crate::App::on_file_dialog]: https://kurogane-rs.org/docs/api/app/app.md#method.on_file_dialog

## Methods

### `kind`

```rust
pub fn kind(&self) -> FileDialogKind
```

What the page asks to choose.

### `title`

```rust
pub fn title(&self) -> &str
```

The dialog's title as the page gives it; empty for the system's own.

### `default_path`

```rust
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.

### `accept`

```rust
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.

### `origin`

```rust
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.

### `browser`

```rust
pub fn browser(&self) -> Option<BrowserId>
```

The browser of the page.

### `responder`

```rust
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.

[`FileDialogDecision::Later`]: https://kurogane-rs.org/docs/api/requests/filedialogdecision.md#variant.Later

## Trait implementations

- `impl Debug for FileDialogRequest`

Source: https://github.com/0x48piraj/kurogane/blob/584c586118ee53cc04604007ee038557bd859092/kurogane/src/file_dialog.rs#L63
