pub enum ArtifactKind {
CoverJpg,
CoverWebp,
DetailsTxt,
LyricsTxt,
Lrc,
VideoMp4,
FolderJpg,
FolderWebp,
FolderMp4,
Playlist,
}Expand description
The class of an external sidecar artifact a clip (or album/library) owns.
The reconcile engine keeps a single pair of artifact actions
(Action::WriteArtifact / Action::DeleteArtifact) rather than one variant
per class; the kind distinguishes them so the executor and the manifest can
route each to the right slot. Per-clip classes
(CoverJpg, CoverWebp,
DetailsTxt, LyricsTxt,
Lrc, and VideoMp4) map to
a manifest entry field; the album/library classes are reconciled by later
phases and have no per-clip manifest slot yet.
Variants§
CoverJpg
The per-song external cover, sourced from image_large_url.
CoverWebp
Retired: the per-song animated cover is now embedded in the audio, not
written as a <track>.webp sidecar. The kind is kept only so a .webp
from an older version stays tracked and is cleaned up (delete-eligible;
see removed_kind_delete_eligible in reconcile); it is never emitted
into a new desired set.
DetailsTxt
The per-song plain-text details dump (generated, inline content).
LyricsTxt
The per-song plain-text lyrics file (generated, inline content).
Lrc
The per-song untimed .lrc lyrics file (generated, inline content).
VideoMp4
The per-song standalone music video, fetched from video_url (off by
default). A large binary, removed only alongside its own audio.
FolderJpg
The album folder’s static cover (album-scoped, later phase).
FolderWebp
The album folder’s animated cover (album-scoped, later phase).
FolderMp4
The album folder’s raw animated cover: the same video_cover_url as
FolderWebp, kept verbatim with no transcode
(album-scoped, later phase).
Playlist
A library-root .m3u8 playlist (library-scoped, later phase).
Trait Implementations§
Source§impl Clone for ArtifactKind
impl Clone for ArtifactKind
Source§fn clone(&self) -> ArtifactKind
fn clone(&self) -> ArtifactKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ArtifactKind
Source§impl Debug for ArtifactKind
impl Debug for ArtifactKind
impl Eq for ArtifactKind
Source§impl Hash for ArtifactKind
impl Hash for ArtifactKind
Source§impl Ord for ArtifactKind
impl Ord for ArtifactKind
Source§fn cmp(&self, other: &ArtifactKind) -> Ordering
fn cmp(&self, other: &ArtifactKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ArtifactKind
impl PartialEq for ArtifactKind
Source§fn eq(&self, other: &ArtifactKind) -> bool
fn eq(&self, other: &ArtifactKind) -> bool
self and other values to be equal, and is used by ==.