pub struct TrackMetadata {Show 14 fields
pub title: String,
pub artist: String,
pub album: String,
pub album_artist: String,
pub date: String,
pub lyrics: String,
pub comment: String,
pub style: String,
pub style_summary: String,
pub model: String,
pub handle: String,
pub parent: String,
pub root: String,
pub lineage: String,
}Expand description
The metadata tags written into a downloaded audio file.
Fields§
§title: String§artist: String§album: String§album_artist: String§date: String§lyrics: String§comment: String§style: String§style_summary: String§model: String§handle: String§parent: String§root: String§lineage: StringImplementations§
Source§impl TrackMetadata
impl TrackMetadata
Sourcepub fn from_clip(clip: &Clip, lineage: &LineageContext) -> TrackMetadata
pub fn from_clip(clip: &Clip, lineage: &LineageContext) -> TrackMetadata
Map a Clip plus its resolved LineageContext to its tag set,
mirroring ha-suno’s to_track_metadata.
artist and album_artist fall back to "Suno", and date is the
YYYY-MM-DD prefix of created_at. The album, parent, root, and
lineage tags come from the resolved context, never the now-defunct
album_title/edited_clip_id/root_ancestor_id feed fields. The
lyrics tag carries the clip’s prompt, matching the reference.
Trait Implementations§
Source§impl Clone for TrackMetadata
impl Clone for TrackMetadata
Source§fn clone(&self) -> TrackMetadata
fn clone(&self) -> TrackMetadata
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 TrackMetadata
impl Debug for TrackMetadata
Source§impl Default for TrackMetadata
impl Default for TrackMetadata
Source§fn default() -> TrackMetadata
fn default() -> TrackMetadata
Returns the “default value” for a type. Read more
impl Eq for TrackMetadata
Source§impl PartialEq for TrackMetadata
impl PartialEq for TrackMetadata
Source§fn eq(&self, other: &TrackMetadata) -> bool
fn eq(&self, other: &TrackMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TrackMetadata
Auto Trait Implementations§
impl Freeze for TrackMetadata
impl RefUnwindSafe for TrackMetadata
impl Send for TrackMetadata
impl Sync for TrackMetadata
impl Unpin for TrackMetadata
impl UnsafeUnpin for TrackMetadata
impl UnwindSafe for TrackMetadata
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