pub struct QqAttachment {
pub url: String,
pub content_type: Option<String>,
pub filename: Option<String>,
pub size: Option<u64>,
pub width: Option<u32>,
pub height: Option<u32>,
}Expand description
An attachment in a QQ message event (image, file, etc.).
Fields§
§url: StringDownload URL for the attachment.
content_type: Option<String>MIME content type (e.g. “image/jpeg”, “image/png”).
filename: Option<String>Original filename.
size: Option<u64>File size in bytes.
width: Option<u32>Image width in pixels.
height: Option<u32>Image height in pixels.
Trait Implementations§
Source§impl Clone for QqAttachment
impl Clone for QqAttachment
Source§fn clone(&self) -> QqAttachment
fn clone(&self) -> QqAttachment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QqAttachment
impl Debug for QqAttachment
Source§impl<'de> Deserialize<'de> for QqAttachment
impl<'de> Deserialize<'de> for QqAttachment
Source§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
Auto Trait Implementations§
impl Freeze for QqAttachment
impl RefUnwindSafe for QqAttachment
impl Send for QqAttachment
impl Sync for QqAttachment
impl Unpin for QqAttachment
impl UnsafeUnpin for QqAttachment
impl UnwindSafe for QqAttachment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more