# Trait Options

> Reads option and modal values by name.

`zaun_bot::Options` · Trait

```rust
pub trait Options { … }
```

Reads option and modal values by name.

## Methods

### `value`

```rust
fn value(&self, name: &str) -> Option<&OptionValue>;
```

The value named `name`.

### `str`

```rust
fn str(&self, name: &str) -> Option<&str>;
```

A text value (string options, modal text inputs).

### `int`

```rust
fn int(&self, name: &str) -> Option<i64>;
```

An integer value.

### `bool`

```rust
fn bool(&self, name: &str) -> Option<bool>;
```

A boolean value.

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/options/trait.Options.html)
