pub(crate) struct AlbumTrack {
pub id: String,
pub name: String,
pub artist_name: Option<String>,
pub album_name: Option<String>,
pub index_number: Option<i32>,
}Expand description
One track of an album, as the album-download path queues it.
artist_name carries whatever the catalog holds for the track’s artists (a
JSON array, as stored on items.artists); it is display metadata for the
downloads list, not a lookup key.
TRACES: UR-018, UR-055 | DR-173
Fields§
§id: String§name: String§artist_name: Option<String>§album_name: Option<String>§index_number: Option<i32>Trait Implementations§
Source§impl Clone for AlbumTrack
impl Clone for AlbumTrack
Source§fn clone(&self) -> AlbumTrack
fn clone(&self) -> AlbumTrack
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 AlbumTrack
impl Debug for AlbumTrack
Source§impl From<&MediaItem> for AlbumTrack
impl From<&MediaItem> for AlbumTrack
Source§impl PartialEq for AlbumTrack
impl PartialEq for AlbumTrack
Source§fn eq(&self, other: &AlbumTrack) -> bool
fn eq(&self, other: &AlbumTrack) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AlbumTrack
Auto Trait Implementations§
impl Freeze for AlbumTrack
impl RefUnwindSafe for AlbumTrack
impl Send for AlbumTrack
impl Sync for AlbumTrack
impl Unpin for AlbumTrack
impl UnsafeUnpin for AlbumTrack
impl UnwindSafe for AlbumTrack
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