# FilePickerSaveOptions

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/platform/storage/struct-filepickersaveoptions/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct FilePickerSaveOptions
```

Options class for the
`IStorageProvider::save_file_picker_async`
method.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L9)

## Members

- [`new`](#function-new)
- [`suggested_file_type`](#function-suggested_file_type)
- [`set_suggested_file_type`](#function-set_suggested_file_type)
- [`with_suggested_file_type`](#function-with_suggested_file_type)
- [`default_extension`](#function-default_extension)
- [`set_default_extension`](#function-set_default_extension)
- [`with_default_extension`](#function-with_default_extension)
- [`file_type_choices`](#function-file_type_choices)
- [`set_file_type_choices`](#function-set_file_type_choices)
- [`with_file_type_choices`](#function-with_file_type_choices)
- [`show_overwrite_prompt`](#function-show_overwrite_prompt)
- [`set_show_overwrite_prompt`](#function-set_show_overwrite_prompt)
- [`with_show_overwrite_prompt`](#function-with_show_overwrite_prompt)

<a id="function-new"></a>

### new

```rust
fn new() -> Self
```

Creates options with nothing set.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L39)

<a id="function-suggested_file_type"></a>

### suggested_file_type

```rust
fn suggested_file_type(self: &Self) -> Option<&Rc<FilePickerFileType>>
```

The file type that should be preselected when the dialog is opened.

This value should reference one of the items in
`file_type_choices`. If not set, the
first file type may be selected by default.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L48)

<a id="function-set_suggested_file_type"></a>

### set_suggested_file_type

```rust
fn set_suggested_file_type(self: &mut Self, value: Option<Rc<FilePickerFileType>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L52)

<a id="function-with_suggested_file_type"></a>

### with_suggested_file_type

```rust
fn with_suggested_file_type(self: Self, value: Rc<FilePickerFileType>) -> Self
```

Sets `suggested_file_type` and returns
the options.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L58)

<a id="function-default_extension"></a>

### default_extension

```rust
fn default_extension(self: &Self) -> Option<&str>
```

The default extension to be used to save the file.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L64)

<a id="function-set_default_extension"></a>

### set_default_extension

```rust
fn set_default_extension(self: &mut Self, value: Option<String>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L68)

<a id="function-with_default_extension"></a>

### with_default_extension

```rust
fn with_default_extension(self: Self, value: impl Into<String>) -> Self
```

Sets `default_extension` and returns the
options.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L74)

<a id="function-file_type_choices"></a>

### file_type_choices

```rust
fn file_type_choices(self: &Self) -> Option<&[Rc<FilePickerFileType>]>
```

The collection of valid file types that the user can choose to
assign to a file.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L81)

<a id="function-set_file_type_choices"></a>

### set_file_type_choices

```rust
fn set_file_type_choices(self: &mut Self, value: Option<Vec<Rc<FilePickerFileType>>>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L85)

<a id="function-with_file_type_choices"></a>

### with_file_type_choices

```rust
fn with_file_type_choices(self: Self, value: Vec<Rc<FilePickerFileType>>) -> Self
```

Sets `file_type_choices` and returns the
options.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L91)

<a id="function-show_overwrite_prompt"></a>

### show_overwrite_prompt

```rust
fn show_overwrite_prompt(self: &Self) -> Option<bool>
```

A value indicating whether the file dialog displays a warning if the
user specifies the name of a file that already exists.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L98)

<a id="function-set_show_overwrite_prompt"></a>

### set_show_overwrite_prompt

```rust
fn set_show_overwrite_prompt(self: &mut Self, value: Option<bool>)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L102)

<a id="function-with_show_overwrite_prompt"></a>

### with_show_overwrite_prompt

```rust
fn with_show_overwrite_prompt(self: Self, value: bool) -> Self
```

Sets `show_overwrite_prompt` and
returns the options.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_save_options.rs#L108)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `Default`
- `Deref`
- `DerefMut`
- `From<PickerOptions>`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
