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 dimensions: Option<(u64, 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

Dimensions if the file is an image

Methods

impl Attachment
[src]

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