lavalink_rs.model.track

class TrackLoadType:

The type of data returned when loading a track.

class Track:
class TrackData:

Information about a track.

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]
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]
encoded: str
class TrackInfo:

Information and metadata about the track.

identifier: str

The track identifier.

uri: Optional[str]

The track uri.

author: str

The track author.

title: str

The track title,

position: int

The track starting position in milliseconds.

length: int

The track length in milliseconds.

artwork_url: Optional[str]

The track artwork url.

is_seekable: bool

Whether the track is seekable.

isrc: Optional[str]

The track "International Standard Recording Code".

source_name: str

The track source name.

is_stream: bool

Whether the track is a stream.

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:
message: str

The message of the exception.

cause: str

The cause of the exception.

severity: str

The severity of the exception.