#[non_exhaustive]pub struct PlaybackState {
pub supported_commands: Vec<String>,
pub volume: Option<u8>,
pub muted: Option<bool>,
pub playback_state: Option<String>,
pub group_id: Option<String>,
pub group_name: Option<String>,
}Expand description
Playback state as the server describes it.
The group fields come from group/update, which is the authoritative source: every message
carries all three, so the latest one is the group’s identity and playback state. The controller
fields come from server/state and stay part of the picture when a group update arrives.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.supported_commands: Vec<String>Commands the server accepts from clients in the same group.
volume: Option<u8>Group volume in the range 0-100, when the server reports one.
muted: Option<bool>Group mute state, when the server reports one.
playback_state: Option<String>Playback state of the group, once a group/update arrived.
playing and stopped are the values this revision defines; a paused group reports
stopped. A value this revision does not name is carried verbatim.
group_id: Option<String>Identifier of the group, once a group/update arrived.
The spec gives it as 43 unpadded base64url characters; the default configuration also
carries a well-formed foreign value such as a UUID, because a real server sends one. See
ClientConfig::strict_group_id and Event::GroupIdNotCanonical.
group_name: Option<String>Friendly name of the group, once a group/update arrived.