# options.OptionKind

- **Module:** options
- **Package:** libtmux
- **Language:** Rust
- **Kind:** enum
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/options.rs#L35
- **Page:** https://libtmux.org/en/rs/latest/reference/options-optionkind/

What kind of value an option holds.

## Example

```rust
use libtmux::{OptionKind, option_schema};

// `mouse` is a real flag: on or off.
assert_eq!(option_schema("mouse").map(OptionSchema::kind), Some(OptionKind::Flag));

// `status` looks like one and is not: it also accepts a count of status
// lines, so reading it as a boolean discards those values.
assert_eq!(option_schema("status").map(OptionSchema::kind), Some(OptionKind::Choice));
```

## Members

- `Flag` (constant): `on` or `off`.
- `Number` (constant): An integer.
- `Choice` (constant): One of a fixed set of words.
- `Text` (constant): Arbitrary text.
- `Colour` (constant): A terminal colour.
- `Key` (constant): A key name.
- `Command` (constant): A tmux command.
