ApplicationData

Struct ApplicationData 

Source
pub struct ApplicationData {
Show 25 fields pub airplay_enabled: Option<bool>, pub converting: Option<bool>, pub current_airplay_devices: Vec<AirplayDevice>, pub current_encoder: Encoder, pub current_playlist: Option<Playlist>, pub current_stream_title: Option<String>, pub current_stream_url: Option<String>, pub current_visual: Visual, pub eq_enabled: bool, pub fixed_indexing: bool, pub frontmost: bool, pub full_screen: bool, pub name: Option<String>, pub mute: bool, pub player_position: Option<f64>, pub player_state: Option<PlayerState>, pub playlists: Option<Vec<Playlist>>, pub selection: Option<Vec<Track>>, pub shuffle_enabled: bool, pub shuffle_mode: ShuffleMode, pub song_repeat: SongRepeat, pub sound_volume: i8, pub version: Option<String>, pub visuals: Vec<Visual>, pub visuals_enabled: bool,
}
Expand description

Contains data related to the Apple Music player, as well as a list of user’s Playlists.

Fields§

§airplay_enabled: Option<bool>

Is AirPlay currently enabled?

§converting: Option<bool>

Is a track currently being converted?

§current_airplay_devices: Vec<AirplayDevice>

The currently selected AirPlay device(s)

§current_encoder: Encoder

The currently selected encoder (MP3, AIFF, WAV, etc.)

§current_playlist: Option<Playlist>

The playlist containing the currently targeted track

§current_stream_title: Option<String>

The name of the current track in the playing stream (provided by streaming server)

§current_stream_url: Option<String>

The URL of the playing stream or streaming web site (provided by streaming server)

§current_visual: Visual

The currently selected visual plug-in

§eq_enabled: bool

Is the equalizer enabled?

§fixed_indexing: bool

True if all AppleScript track indices should be independent of the play order of the owning playlist.

§frontmost: bool

Is this the active application?

§full_screen: bool

Is the application using the entire screen?

§name: Option<String>

The name of the application

§mute: bool

Has the sound output been muted?

§player_position: Option<f64>

: the player’s position within the currently playing track in seconds.

§player_state: Option<PlayerState>

Is the player stopped, paused, or playing?

§playlists: Option<Vec<Playlist>>

List of all user playlists

§selection: Option<Vec<Track>>

Track selected on the app by the user

§shuffle_enabled: bool

Are songs played in random order?

§shuffle_mode: ShuffleMode

The playback shuffle mode

§song_repeat: SongRepeat

The playback repeat mode

§sound_volume: i8

The sound output volume (0 = minimum, 100 = maximum)

§version: Option<String>

The version of the application

§visuals: Vec<Visual>

List of visuals

§visuals_enabled: bool

Are visuals currently being displayed?

Trait Implementations§

Source§

impl Debug for ApplicationData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ApplicationData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,