Struct discord::model::Attachment [] [src]

pub struct Attachment {
    pub id: String,
    pub filename: String,
    pub url: String,
    pub proxy_url: String,
    pub size: u64,
    pub width: Option<u64>,
    pub height: Option<u64>,
}

File upload attached to a message

Fields

Short filename for the attachment

Shorter URL with message and attachment id

Longer URL with large hash

Size of the file in bytes

Width if the file is an image

Height if the file is an image

Methods

impl Attachment
[src]

Get the dimensions of the attachment if it is an image.

Trait Implementations

impl Debug for Attachment
[src]

Formats the value using the given formatter.

impl Clone for Attachment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more