pub struct ManifestEntry {
pub path: String,
pub format: AudioFormat,
pub meta_hash: String,
pub art_hash: String,
pub size: u64,
pub preserve: bool,
pub cover_jpg: Option<ArtifactState>,
pub cover_webp: Option<ArtifactState>,
}Expand description
One manifest record: the prior known state of a single downloaded clip.
Fields§
§path: StringRelative path of the audio file under the account root.
format: AudioFormatFormat the file was written in.
meta_hash: StringHash of the clip’s tag-bearing metadata, for detecting retag needs.
art_hash: StringHash of the embedded cover art, for detecting art drift.
size: u64Size of the file in bytes when last written.
preserve: boolWhen set, this clip is held by a copy or archive source, or is private, so it must never be deleted as an orphan no matter the current selection. The caller writes this marker; the reconcile engine only reads it.
cover_jpg: Option<ArtifactState>Prior state of the external cover.jpg sidecar, when one was written.
cover_webp: Option<ArtifactState>Prior state of the external cover.webp sidecar, when one was written.
Trait Implementations§
Source§impl Clone for ManifestEntry
impl Clone for ManifestEntry
Source§fn clone(&self) -> ManifestEntry
fn clone(&self) -> ManifestEntry
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 ManifestEntry
impl Debug for ManifestEntry
Source§impl Default for ManifestEntry
impl Default for ManifestEntry
Source§fn default() -> ManifestEntry
fn default() -> ManifestEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ManifestEntrywhere
ManifestEntry: Default,
impl<'de> Deserialize<'de> for ManifestEntrywhere
ManifestEntry: Default,
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
impl Eq for ManifestEntry
Source§impl PartialEq for ManifestEntry
impl PartialEq for ManifestEntry
Source§fn eq(&self, other: &ManifestEntry) -> bool
fn eq(&self, other: &ManifestEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ManifestEntry
impl Serialize for ManifestEntry
impl StructuralPartialEq for ManifestEntry
Auto Trait Implementations§
impl Freeze for ManifestEntry
impl RefUnwindSafe for ManifestEntry
impl Send for ManifestEntry
impl Sync for ManifestEntry
impl Unpin for ManifestEntry
impl UnsafeUnpin for ManifestEntry
impl UnwindSafe for ManifestEntry
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