Struct command::object::Attachment
zaun_community_protocol::command::object::Attachment · Struct
pub struct Attachment { … }An attachment record: what a message carries, and what attachment.download
and attachment.updated answer.
Fields
Section titled “Fields”attachment_id: AttachmentId
Section titled “attachment_id: AttachmentId”Host-assigned id.
name: String
Section titled “name: String”File name.
size: u64
Section titled “size: u64”Size in bytes.
mime: String
Section titled “mime: String”MIME type.
sha3_256: Vec<u8>
Section titled “sha3_256: Vec<u8>”SHA3-256 of the bytes, base64url.
availability: Availability
Section titled “availability: Availability”Whether the host still holds the bytes.
failure: Option<UploadFailure>
Section titled “failure: Option<UploadFailure>”Why an upload never became stored; only with availability: failed.
Trait implementations
Section titled “Trait implementations”Clone, Debug, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq