pub struct ControllerCommand {
pub command: String,
pub volume: Option<u8>,
pub mute: Option<bool>,
pub position_ms: Option<u64>,
pub offset_ms: Option<i64>,
}Expand description
The controller object of ClientCommand.
command names the operation and the other fields carry its parameter; a field that does not
belong to the command is absent rather than null.
Fields§
§command: StringCommand to run: play, pause, stop, next, previous, volume, mute,
repeat_off, repeat_one, repeat_all, shuffle, unshuffle, switch, seek or
seek_relative. A command outside the server’s advertised set is ignored by the server.
volume: Option<u8>Target group volume in the range 0-100; only for volume.
mute: Option<bool>Target mute state; only for mute.
position_ms: Option<u64>Absolute position in milliseconds; only for seek.
offset_ms: Option<i64>Offset from the current position in milliseconds; only for seek_relative.
Trait Implementations§
Source§impl Clone for ControllerCommand
impl Clone for ControllerCommand
Source§impl Debug for ControllerCommand
impl Debug for ControllerCommand
Source§impl Default for ControllerCommand
impl Default for ControllerCommand
Source§impl<'de> Deserialize<'de> for ControllerCommand
impl<'de> Deserialize<'de> for ControllerCommand
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
impl Eq for ControllerCommand
Source§impl PartialEq for ControllerCommand
impl PartialEq for ControllerCommand
Source§impl Serialize for ControllerCommand
impl Serialize for ControllerCommand
impl StructuralPartialEq for ControllerCommand
Auto Trait Implementations§
impl Forget for ControllerCommand
impl Freeze for ControllerCommand
impl Move for ControllerCommand
impl RefUnwindSafe for ControllerCommand
impl Send for ControllerCommand
impl Sync for ControllerCommand
impl Unpin for ControllerCommand
impl UnsafeUnpin for ControllerCommand
impl UnwindSafe for ControllerCommand
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