pub struct PlaylistState {
pub name: String,
pub path: String,
pub hash: String,
}Expand description
The reconciled .m3u8 state for one playlist.
A playlist’s body is generated, not fetched, so unlike per-clip artifacts
its change detection is a single content hash over the full rendered text
(HARDENING B1: name, order, and every member’s path/title/duration feed it).
The path is the sidecar’s library-relative location, tracked so a rename
(a playlist renamed on Suno) is detected and the old file removed. Kept as a
flat row so it migrates cleanly to a SQLite playlists table.
Fields§
§name: StringThe playlist’s display name at the time it was last written.
path: StringThe .m3u8 file’s library-relative path (<sanitised name>.m3u8).
hash: StringThe content hash of the rendered .m3u8 this row was written from.
Trait Implementations§
Source§impl Clone for PlaylistState
impl Clone for PlaylistState
Source§fn clone(&self) -> PlaylistState
fn clone(&self) -> PlaylistState
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 PlaylistState
impl Debug for PlaylistState
Source§impl Default for PlaylistState
impl Default for PlaylistState
Source§fn default() -> PlaylistState
fn default() -> PlaylistState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlaylistStatewhere
PlaylistState: Default,
impl<'de> Deserialize<'de> for PlaylistStatewhere
PlaylistState: 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 PlaylistState
Source§impl PartialEq for PlaylistState
impl PartialEq for PlaylistState
Source§fn eq(&self, other: &PlaylistState) -> bool
fn eq(&self, other: &PlaylistState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlaylistState
impl Serialize for PlaylistState
impl StructuralPartialEq for PlaylistState
Auto Trait Implementations§
impl Freeze for PlaylistState
impl RefUnwindSafe for PlaylistState
impl Send for PlaylistState
impl Sync for PlaylistState
impl Unpin for PlaylistState
impl UnsafeUnpin for PlaylistState
impl UnwindSafe for PlaylistState
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