pub struct PlayerCommand {
pub command: String,
pub volume: Option<u8>,
pub mute: Option<bool>,
pub output_delay_ms: Option<u32>,
}Expand description
The player object of ServerCommand.
Fields§
§command: StringCommand to run: volume, mute or set_output_delay. A command outside the client’s
advertised set is ignored.
volume: Option<u8>Target volume in the range 0-100; required for volume, absent otherwise.
mute: Option<bool>Target mute state; required for mute, absent otherwise.
output_delay_ms: Option<u32>Target output delay in milliseconds; required for set_output_delay, absent otherwise.
Trait Implementations§
Source§impl Clone for PlayerCommand
impl Clone for PlayerCommand
Source§impl Debug for PlayerCommand
impl Debug for PlayerCommand
Source§impl<'de> Deserialize<'de> for PlayerCommand
impl<'de> Deserialize<'de> for PlayerCommand
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 PlayerCommand
Source§impl PartialEq for PlayerCommand
impl PartialEq for PlayerCommand
Source§impl Serialize for PlayerCommand
impl Serialize for PlayerCommand
impl StructuralPartialEq for PlayerCommand
Auto Trait Implementations§
impl Forget for PlayerCommand
impl Freeze for PlayerCommand
impl Move for PlayerCommand
impl RefUnwindSafe for PlayerCommand
impl Send for PlayerCommand
impl Sync for PlayerCommand
impl Unpin for PlayerCommand
impl UnsafeUnpin for PlayerCommand
impl UnwindSafe for PlayerCommand
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