# Enum `kurogane::DownloadDecision`

```rust
#[non_exhaustive]
pub enum DownloadDecision {
    Default,
    Prompt,
    SaveTo(PathBuf),
    Deny,
}
```

The answer of [`App::on_download`](https://kurogane-rs.org/docs/api/app/app.md#method.on_download).

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

## Variants

### `Default`

```rust
Default
```

Kurogane's policy, which is [`Prompt`](https://kurogane-rs.org/docs/api/requests/downloaddecision.md#variant.Prompt).

[Self::Prompt]: https://kurogane-rs.org/docs/api/requests/downloaddecision.md#variant.Prompt

### `Prompt`

```rust
Prompt
```

Asks the user with the system's Save As dialog, the suggested name
filled in; cancelling it saves nothing. A window shows one dialog at
a time. A download may wait for the one before it.

### `SaveTo`

```rust
SaveTo(PathBuf)
```

Saves the file at this absolute path, which names the file itself,
without asking, replacing a file already there. The folder is
created when missing. A place whose folder cannot be made saves
nothing and neither does a relative path.

### `Deny`

```rust
Deny
```

Saves nothing.

## Trait implementations

- `impl Clone for DownloadDecision`
- `impl Debug for DownloadDecision`
- `impl Default for DownloadDecision`
- `impl Eq for DownloadDecision`
- `impl PartialEq for DownloadDecision`

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