lavalink_rs.model.track

class TrackLoadType:

The type of data returned when loading a track.

class Track:
class TrackData:

Information about a track.

encoded: str
plugin_info: Union[Dict[str, Union[Dict[str, ForwardRef('JSON')], List[ForwardRef('JSON')], str, int, float, bool, NoneType]], List[Union[Dict[str, ForwardRef('JSON')], List[ForwardRef('JSON')], str, int, float, bool, NoneType]], str, int, float, bool, NoneType]
user_data: Union[Dict[str, Union[Dict[str, ForwardRef('JSON')], List[ForwardRef('JSON')], str, int, float, bool, NoneType]], List[Union[Dict[str, ForwardRef('JSON')], List[ForwardRef('JSON')], str, int, float, bool, NoneType]], str, int, float, bool, NoneType]
class TrackInfo:

Information and metadata about the track.

artwork_url: Optional[str]

The track artwork url.

identifier: str

The track identifier.

is_seekable: bool

Whether the track is seekable.

title: str

The track title,

is_stream: bool

Whether the track is a stream.

source_name: str

The track source name.

length: int

The track length in milliseconds.

author: str

The track author.

position: int

The track starting position in milliseconds.

uri: Optional[str]

The track uri.

isrc: Optional[str]

The track "International Standard Recording Code".

class PlaylistData:
plugin_info: Union[Dict[str, Union[Dict[str, ForwardRef('JSON')], List[ForwardRef('JSON')], str, int, float, bool, NoneType]], List[Union[Dict[str, ForwardRef('JSON')], List[ForwardRef('JSON')], str, int, float, bool, NoneType]], str, int, float, bool, NoneType]
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:
cause: str

The cause of the exception.

severity: str

The severity of the exception.

message: str

The message of the exception.