Skip to content

Struct command::attachment::Upload

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

pub struct Upload { … }

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

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

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

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

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

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

Full rustdoc page