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
id: String
filename: String
Short filename for the attachment
url: String
Shorter URL with message and attachment id
proxy_url: String
Longer URL with large hash
size: u64
Size of the file in bytes
width: Option<u64>
Width if the file is an image
height: Option<u64>
Height if the file is an image
Methods
impl Attachment
[src]
Trait Implementations
impl Debug for Attachment
[src]
impl Clone for Attachment
[src]
fn clone(&self) -> Attachment
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more