# Struct command::object::MediaItem

> One picture of a media gallery.

`zaun_community_protocol::command::object::MediaItem` · Struct

```rust
pub struct MediaItem { … }
```

One picture of a media gallery.

## Fields

### `media: AttachmentId`

An image attachment of the same message.

### `description: Option<String>`

Alt text, ≤ 1 024 scalars.

### `spoiler: bool`

Blurred until clicked.

## 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/layout/struct.MediaItem.html)
