# Struct command::attachment::Upload

> `attachment.upload`: declares a file the member is about to send.

`zaun_community_protocol::command::attachment::Upload` · Struct

```rust
pub struct Upload { … }
```

`attachment.upload`: declares a file the member is about to send.

## Fields

### `name: String`

The file name shown to readers: 1–255 scalars, no path separator or control character.

### `size: u64`

Exact size in bytes, 1 to the host's limit (at most 1 GiB).

### `mime: String`

The media type, such as `image/png` (`type/subtype`, ASCII, at most 127 bytes).

### `sha3_256: Vec<u8>`

SHA3-256 of the bytes, base64url. The host refuses a file that does not match.

## Trait implementations

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

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/command/attachment/struct.Upload.html)
