Struct essence::models::message::Attachment
source · pub struct Attachment {
pub id: u64,
pub filename: String,
pub description: Option<String>,
pub size: u64,
pub url: String,
}Expand description
Represents a message attachment.
Fields§
§id: u64The snowflake ID of the attachment.
filename: StringThe filename of the attachment.
description: Option<String>The description/alt text of the attachment.
size: u64The size of the attachment, in bytes.
url: StringThe CDN URL of the attachment.
Trait Implementations§
source§impl Clone for Attachment
impl Clone for Attachment
source§fn clone(&self) -> Attachment
fn clone(&self) -> Attachment
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more