# AutoSuggestBoxQuerySubmittedEventArgs

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-controls/struct-autosuggestboxquerysubmittedeventargs/

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

```rust
struct AutoSuggestBoxQuerySubmittedEventArgs
```

The arguments of the `QuerySubmitted` event of an [`AutoSuggestBox`](/docs/0.5.0/api/ferroui-controls/struct-autosuggestbox/) (WinUI's
`AutoSuggestBoxQuerySubmittedEventArgs`).

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_suggest_box.rs#L114)

## Members

- [`query_text`](#struct_field-query_text)
- [`chosen_suggestion`](#struct_field-chosen_suggestion)
- [`query_text`](#function-query_text)
- [`chosen_suggestion`](#function-chosen_suggestion)

<a id="struct_field-query_text"></a>

### query_text

```rust
query_text: String
```

The text of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_suggest_box.rs#L116)

<a id="struct_field-chosen_suggestion"></a>

### chosen_suggestion

```rust
chosen_suggestion: Option<ferroui_base::BoxedValue>
```

The suggestion chosen with the keyboard or the pointer, if any.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_suggest_box.rs#L118)

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

### query_text

```rust
fn query_text(self: &Self) -> String
```

The text of the box.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_suggest_box.rs#L123)

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

### chosen_suggestion

```rust
fn chosen_suggestion(self: &Self) -> Option<BoxedValue>
```

The suggestion chosen, if any.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Controls/auto_suggest_box.rs#L128)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `ErasedDestructor`
- `IntoEither`
- `Clone`
- `StructuralPartialEq`
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)

## Availability

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