lavalink_rs.model.track

class TrackLoadType:

The type of data returned when loading a track.

class TrackData:

Information about a track.

encoded: str
class TrackInfo:

Information and metadata about the track.

source_name: str

The track source name.

length: int

The track length in milliseconds.

identifier: str

The track identifier.

title: str

The track title,

position: int

The track starting position in milliseconds.

uri: Optional[str]

The track uri.

artwork_url: Optional[str]

The track artwork url.

is_stream: bool

Whether the track is a stream.

is_seekable: bool

Whether the track is seekable.

isrc: Optional[str]

The track "International Standard Recording Code".

author: str

The track author.

class PlaylistData:
class PlaylistInfo:
name: str

The name of the playlist.

selected_track: Optional[int]

The selected track of the playlist.

None if no track is selected.

class TrackError:
severity: str

The severity of the exception.

cause: str

The cause of the exception.

message: str

The message of the exception.