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
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
dimensions: Option<(u64, u64)>
Dimensions if the file is an image
Methods
impl Attachment[src]
fn decode(value: Value) -> Result<Attachment>
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