#[non_exhaustive]pub struct TrackInfo {
pub artwork_url: Option<String>,
pub author: String,
pub isrc: Option<String>,
pub identifier: String,
pub is_seekable: bool,
pub is_stream: bool,
pub length: u64,
pub position: u64,
pub source_name: String,
pub title: String,
pub uri: Option<String>,
}Expand description
Information about the track returned or playing on Lavalink.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.artwork_url: Option<String>The track artwork url.
The track author.
isrc: Option<String>The track ISRC.
identifier: StringThe track identifier.
is_seekable: boolWhether the track is seekable.
is_stream: boolWhether the track is a stream.
length: u64The track length in milliseconds.
position: u64The track position in milliseconds.
source_name: StringThe track source name.
title: StringThe track title.
uri: Option<String>The track uri.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrackInfo
impl<'de> Deserialize<'de> for TrackInfo
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 TrackInfo
impl StructuralPartialEq for TrackInfo
Auto Trait Implementations§
impl Freeze for TrackInfo
impl RefUnwindSafe for TrackInfo
impl Send for TrackInfo
impl Sync for TrackInfo
impl Unpin for TrackInfo
impl UnwindSafe for TrackInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.