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 | |
filename | Short filename for the attachment  | 
url | Shorter URL with message and attachment id  | 
proxy_url | Longer URL with large hash  | 
size | Size of the file in bytes  | 
dimensions | Dimensions if the file is an image  | 
Methods
impl Attachment[src]
fn decode(value: Value) -> Result<Attachment>
Trait Implementations
Derived Implementations
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