pub struct Track {Show 15 fields
pub title: String,
pub artist: String,
pub album: Option<String>,
pub album_artist: Option<String>,
pub cover: Option<Cover>,
pub duration_ms: u64,
pub position_ms: u64,
pub playing: bool,
pub playback_rate: Option<f64>,
pub shuffle: Option<bool>,
pub repeat: Option<RepeatMode>,
pub can_next: bool,
pub can_previous: bool,
pub track_number: Option<u32>,
pub genre: Option<String>,
}Fields§
§title: String§artist: String§album: Option<String>§album_artist: Option<String>§cover: Option<Cover>§duration_ms: u64§position_ms: u64§playing: bool§playback_rate: Option<f64>§shuffle: Option<bool>§repeat: Option<RepeatMode>§can_next: bool§can_previous: bool§track_number: Option<u32>§genre: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for Track
impl RefUnwindSafe for Track
impl Send for Track
impl Sync for Track
impl Unpin for Track
impl UnsafeUnpin for Track
impl UnwindSafe for Track
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more