pub struct Attachment {
    pub description: Option<String>,
    pub name: String,
    pub mime_type: String,
    pub data: Vec<u8>,
}
Expand description

An attached file (often used for cover art)

Fields

description: Option<String>

A human-friendly name for the file

name: String

The file’s name

mime_type: String

The file’s MIME type

data: Vec<u8>

The file’s raw data

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.