# Struct ActionRow

> Builds a types::ActionRow: up to 5 buttons, or one select.

`zaun_bot::ActionRow` · Struct

```rust
pub struct ActionRow(…)
```

Builds a [`types::ActionRow`]: up to 5 buttons, or one select.

## Methods

### `new`

```rust
pub fn new() -> Self
```

An empty row.

### `buttons`

```rust
pub fn buttons<impl IntoIterator<Item = Button>>(buttons: impl IntoIterator<Item = Button>) -> Self
```

A row of buttons.

### `select`

```rust
pub fn select(select: Select) -> Self
```

A row holding one select.

### `button`

```rust
pub fn button(self, button: Button) -> Self
```

Adds a button.

### `build`

```rust
pub fn build(self) -> ActionRow
```

The finished row.

## Trait implementations

`Clone`, `Debug`, `Default`

[Full rustdoc page](/docs/api/rust/zaun-bot/zaun_bot/select/struct.ActionRow.html)
