# PickerOptions

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

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

```rust
struct PickerOptions
```

Common options for the picker dialogs.

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

## Members

- [`new`](#function-new)
- [`title`](#function-title)
- [`set_title`](#function-set_title)
- [`with_title`](#function-with_title)
- [`suggested_start_location`](#function-suggested_start_location)
- [`set_suggested_start_location`](#function-set_suggested_start_location)
- [`with_suggested_start_location`](#function-with_suggested_start_location)
- [`suggested_file_name`](#function-suggested_file_name)
- [`set_suggested_file_name`](#function-set_suggested_file_name)
- [`with_suggested_file_name`](#function-with_suggested_file_name)

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

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

### title

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

The text that appears in the title bar of a picker.

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

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

### set_title

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



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

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

### with_title

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

Sets `title` and returns the options.

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

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

### suggested_start_location

```rust
fn suggested_start_location(self: &Self) -> Option<&Rc<dyn IStorageFolder>>
```

The initial location where the file open picker looks for files to
present to the user. Can be obtained from previously picked folder
or using `IStorageProvider::try_get_folder_from_path_async`
or `IStorageProvider::try_get_well_known_folder_async`.

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

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

### set_suggested_start_location

```rust
fn set_suggested_start_location(self: &mut Self, value: Option<Rc<dyn IStorageFolder>>)
```



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

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

### with_suggested_start_location

```rust
fn with_suggested_start_location(self: Self, value: Rc<dyn IStorageFolder>) -> Self
```

Sets `suggested_start_location`
and returns the options.

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

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

### suggested_file_name

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

The file name that the file picker suggests to the user.

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

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

### set_suggested_file_name

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



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

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

### with_suggested_file_name

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

Sets `suggested_file_name` and returns
the options.

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

## 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>`
- `Any`
- `ToOwned`
- `ErasedDestructor`
- `IntoEither`
- `From<PickerOptions>`
- `Clone`
- `Default`

## Availability

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