pub enum ResourceMetadata {
Artwork {
content_type: String,
etag: String,
faces: Option<Vec<ArtworkFace>>,
},
Media {
size: u64,
complete: bool,
epoch: u32,
revision: u64,
},
Subtitle {
format: SubtitleFormat,
total: u64,
version: u64,
revision: u64,
},
PlaylistArt {
artwork: ArtworkId,
},
Download {
size: u64,
},
}Variants§
Artwork
Fields
§
faces: Option<Vec<ArtworkFace>>Experimental (smart-crop), for a connection that named it:
the faces in this backdrop, empty if it has none. Left out for
a backdrop not scanned yet, and for any other image.
Media
Subtitle
PlaylistArt
The cover SetPlaylistArt stored: the playlist’s artwork now.
Download
A download’s file (Download): its whole length.
Trait Implementations§
Source§impl Clone for ResourceMetadata
impl Clone for ResourceMetadata
Source§impl Debug for ResourceMetadata
impl Debug for ResourceMetadata
Source§impl<'de> Deserialize<'de> for ResourceMetadata
impl<'de> Deserialize<'de> for ResourceMetadata
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
Source§impl PartialEq for ResourceMetadata
impl PartialEq for ResourceMetadata
Source§impl Serialize for ResourceMetadata
impl Serialize for ResourceMetadata
impl StructuralPartialEq for ResourceMetadata
Auto Trait Implementations§
impl Forget for ResourceMetadata
impl Freeze for ResourceMetadata
impl Move for ResourceMetadata
impl RefUnwindSafe for ResourceMetadata
impl Send for ResourceMetadata
impl Sync for ResourceMetadata
impl Unpin for ResourceMetadata
impl UnsafeUnpin for ResourceMetadata
impl UnwindSafe for ResourceMetadata
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