# Struct command::object::Choice

> A predefined choice of an option, or an autocomplete result.

`zaun_community_protocol::command::object::Choice` · Struct

```rust
pub struct Choice { … }
```

A predefined choice of an option, or an autocomplete result.

## Fields

### `name: String`

1–100 scalars.

### `name_localizations: BTreeMap<String, String>`

Localized names by BCP 47 tag.

### `value: ChoiceValue`

What the bot receives.

## Trait implementations

`Clone`, `Debug`, `Deserialize<'de>`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/app_command/struct.Choice.html)
