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.
Fields
Section titled “Fields”name: String
Section titled “name: String”The file name shown to readers: 1–255 scalars, no path separator or control character.
size: u64
Section titled “size: u64”Exact size in bytes, 1 to the host’s limit (at most 1 GiB).
mime: String
Section titled “mime: String”The media type, such as image/png (type/subtype, ASCII, at most 127 bytes).
sha3_256: Vec<u8>
Section titled “sha3_256: Vec<u8>”SHA3-256 of the bytes, base64url. The host refuses a file that does not match.
Trait implementations
Section titled “Trait implementations”Body, Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq, Validate