pub struct Picture {
pub mime_type: String,
pub picture_type: PictureType,
pub description: Option<String>,
pub data: Vec<u8>,
}Expand description
Attached picture (album art, etc.)
Fields§
§mime_type: StringMIME type (e.g., “image/jpeg”, “image/png”)
picture_type: PictureTypePicture type
description: Option<String>Description
data: Vec<u8>Binary picture data
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Picture
impl<'de> Deserialize<'de> for Picture
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 Picture
impl RefUnwindSafe for Picture
impl Send for Picture
impl Sync for Picture
impl Unpin for Picture
impl UnwindSafe for Picture
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