pub struct TrayNowPlayingPayload {Show 14 fields
pub title_bar: Option<String>,
pub tooltip: String,
pub idle: bool,
pub popover_title: Option<String>,
pub popover_subtitle: Option<String>,
pub elapsed_sec: Option<f64>,
pub total_sec: Option<f64>,
pub popover_playing: Option<bool>,
pub popover_idle_label: Option<String>,
pub playback_speed: Option<f64>,
pub volume_pct: Option<f64>,
pub ui_theme: Option<String>,
pub appearance: Option<HashMap<String, String>>,
pub popover_reveal_path: Option<String>,
}Fields§
§title_bar: Option<String>§tooltip: String§idle: bool§popover_title: Option<String>§popover_subtitle: Option<String>§elapsed_sec: Option<f64>§total_sec: Option<f64>§popover_playing: Option<bool>§popover_idle_label: Option<String>§playback_speed: Option<f64>Optional: main prefs audioSpeed (0.25..=2). When omitted, last popover value is kept.
volume_pct: Option<f64>Optional: main prefs audioVolume (0..=100). When omitted, last popover value is kept.
ui_theme: Option<String>Optional: main window data-theme ("light" / "dark"). When omitted, Rust reads prefs.
appearance: Option<HashMap<String, String>>Optional: getComputedStyle(document.documentElement) snapshot for scheme vars (--cyan, …).
popover_reveal_path: Option<String>Optional: filesystem path for the playing item — popover reveal / copy.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TrayNowPlayingPayload
impl<'de> Deserialize<'de> for TrayNowPlayingPayload
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
Auto Trait Implementations§
impl Freeze for TrayNowPlayingPayload
impl RefUnwindSafe for TrayNowPlayingPayload
impl Send for TrayNowPlayingPayload
impl Sync for TrayNowPlayingPayload
impl Unpin for TrayNowPlayingPayload
impl UnwindSafe for TrayNowPlayingPayload
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
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more