# FilePickerOpenOptions

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

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

```rust
struct FilePickerOpenOptions
```

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

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/platform/storage/file_picker_open_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)
- [`allow_multiple`](#function-allow_multiple)
- [`set_allow_multiple`](#function-set_allow_multiple)
- [`with_allow_multiple`](#function-with_allow_multiple)
- [`file_type_filter`](#function-file_type_filter)
- [`set_file_type_filter`](#function-set_file_type_filter)
- [`with_file_type_filter`](#function-with_file_type_filter)

<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_open_options.rs#L38)

<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_filter`. 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_open_options.rs#L47)

<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_open_options.rs#L51)

<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_open_options.rs#L57)

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

### allow_multiple

```rust
fn allow_multiple(self: &Self) -> bool
```

An option indicating whether the open picker allows users to select
multiple files.

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

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

### set_allow_multiple

```rust
fn set_allow_multiple(self: &mut Self, value: bool)
```



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

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

### with_allow_multiple

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

Sets `allow_multiple` and returns the
options.

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

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

### file_type_filter

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

The collection of file types that the file open picker displays.

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

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

### set_file_type_filter

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



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

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

### with_file_type_filter

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

Sets `file_type_filter` and returns the
options.

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

## 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/).
