# Enum command::object::OptionType

> `type` of an option (Discord's numbers 1–11).

`zaun_community_protocol::command::object::OptionType` · Enum

```rust
pub enum OptionType { … }
```

`type` of an option (Discord's numbers 1–11).

## Variants

### `SubCommand`

1.

### `SubCommandGroup`

2.

### `String`

3.

### `Integer`

4: |x| < 2^53.

### `Boolean`

5.

### `User`

6: a member.

### `Channel`

7.

### `Role`

8.

### `Mentionable`

9: a member or a role.

### `Number`

10: a double.

### `Attachment`

11: an attachment the invoker uploaded.

## Trait implementations

`Clone`, `Copy`, `Debug`, `Deserialize<'de>`, `Eq`, `From<OptionType>`, `Hash`, `PartialEq`, `Serialize`, `StructuralPartialEq`, `TryFrom<u8>`

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