Struct twilight_model::channel::Attachment [−][src]
pub struct Attachment { pub content_type: Option<String>, pub filename: String, pub height: Option<u64>, pub id: AttachmentId, pub proxy_url: String, pub size: u64, pub url: String, pub width: Option<u64>, }
Fields
content_type: Option<String>
Attachment’s media type.
filename: String
height: Option<u64>
id: AttachmentId
proxy_url: String
size: u64
url: String
width: Option<u64>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Attachment
impl Send for Attachment
impl Sync for Attachment
impl Unpin for Attachment
impl UnwindSafe for Attachment
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more