# Struct command::object::TextInput

> Type 4.

`zaun_community_protocol::command::object::TextInput` · Struct

```rust
pub struct TextInput { … }
```

Type 4.

## Fields

### `id: Option<u32>`

Unique in the modal.

### `custom_id: String`

1–100 bytes.

### `style: TextInputStyle`

Short or paragraph.

### `min_length: Option<u32>`

0–4 000.

### `max_length: Option<u32>`

1–4 000.

### `required: Option<bool>`

Default true.

### `value: Option<String>`

Prefilled text, ≤ 4 000 scalars.

### `placeholder: Option<String>`

≤ 100 scalars.

## Trait implementations

`Clone`, `Debug`, `Deserialize<'de>`, `Eq`, `PartialEq`, `Serialize`, `StructuralPartialEq`

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/object/component/kinds/struct.TextInput.html)
