pub struct Picture {
pub picture_type: PictureType,
pub media_type: String,
pub description: String,
pub width: u32,
pub height: u32,
pub color_depth: u32,
pub number_colors: u32,
pub data: Vec<u8>,
}Expand description
Implementation of FLAC picture block (is also ogg’s recommended way to store album art). For an encoded description of this struct, see RFC9639
Fields§
§picture_type: PictureTypethe type of picture: see RFC9639
media_type: Stringthe media type as specified by RFC2046
essentially the MIME
description: Stringdescription string (often this is “Cover (front)” or something similar)
width: u32width of the picture
height: u32height of the picture
color_depth: u32color depth of the picture in bits per pixel
number_colors: u32For indexed-color pictures (e.g., GIF), the number of colors used; 0 for non-indexed pictures
data: Vec<u8>the actual picture data
Implementations§
Trait Implementations§
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