# Struct Container

> Builds a Components V2 `types::Container`.

`zaun_bot::Container` · Struct

```rust
pub struct Container { … }
```

Builds a Components V2 `types::Container`.

## Methods

### `new`

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

An empty container.

### `accent`

```rust
pub fn accent(self, rgb: u32) -> Self
```

Accent colour, `0xRRGGBB`.

### `text`

```rust
pub fn text<impl Into<String>>(self, content: impl Into<String>) -> Self
```

Adds a text block.

### `section`

```rust
pub fn section(self, section: Section) -> Self
```

Adds a section.

### `row`

```rust
pub fn row(self, row: ActionRow) -> Self
```

Adds a row of buttons or a select.

### `separator`

```rust
pub fn separator(self) -> Self
```

Adds a divider line.

### `build`

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

The finished container.

## Trait implementations

`Clone`, `Debug`, `Default`

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