Enum MainCommandResponse
pub enum MainCommandResponse {
Show 20 variants
GetSong(Vec<Song>),
GetEntity(Value),
GetCurrentSong(Option<Song>),
GetPlayerState(PlayerState),
GetVolume(f64),
GetTime(f64),
GetQueue(Value),
GetPreference(PreferenceData),
SetPreference(bool),
GetSecure(PreferenceData),
SetSecure(bool),
AddSongs(Vec<Song>),
RemoveSong(bool),
UpdateSong(Song),
AddPlaylist(String),
AddToPlaylist(bool),
RegisterOAuth(bool),
OpenExternalUrl(bool),
UpdateAccounts(bool),
ExtensionsUpdated(bool),
}
Variants§
GetSong(Vec<Song>)
GetEntity(Value)
GetCurrentSong(Option<Song>)
GetPlayerState(PlayerState)
GetVolume(f64)
GetTime(f64)
GetQueue(Value)
GetPreference(PreferenceData)
SetPreference(bool)
GetSecure(PreferenceData)
SetSecure(bool)
AddSongs(Vec<Song>)
RemoveSong(bool)
UpdateSong(Song)
AddPlaylist(String)
AddToPlaylist(bool)
RegisterOAuth(bool)
OpenExternalUrl(bool)
UpdateAccounts(bool)
ExtensionsUpdated(bool)
Trait Implementations§
§impl Clone for MainCommandResponse
impl Clone for MainCommandResponse
§fn clone(&self) -> MainCommandResponse
fn clone(&self) -> MainCommandResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for MainCommandResponse
impl Debug for MainCommandResponse
§impl<'de> Deserialize<'de> for MainCommandResponse
impl<'de> Deserialize<'de> for MainCommandResponse
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MainCommandResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MainCommandResponse, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl FromBytesOwned for MainCommandResponsewhere
Json<MainCommandResponse>: FromBytesOwned,
impl FromBytesOwned for MainCommandResponsewhere
Json<MainCommandResponse>: FromBytesOwned,
§fn from_bytes_owned(__data: &[u8]) -> Result<MainCommandResponse, Error>
fn from_bytes_owned(__data: &[u8]) -> Result<MainCommandResponse, Error>
Decode a value from a slice of bytes, the resulting value should not borrow the input
data.
§impl Serialize for MainCommandResponse
impl Serialize for MainCommandResponse
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl<'__to_bytes_a> ToBytes<'__to_bytes_a> for MainCommandResponsewhere
Json<&'__to_bytes_b MainCommandResponse>: for<'__to_bytes_b> ToBytes<'__to_bytes_b>,
impl<'__to_bytes_a> ToBytes<'__to_bytes_a> for MainCommandResponsewhere
Json<&'__to_bytes_b MainCommandResponse>: for<'__to_bytes_b> ToBytes<'__to_bytes_b>,
Auto Trait Implementations§
impl Freeze for MainCommandResponse
impl RefUnwindSafe for MainCommandResponse
impl Send for MainCommandResponse
impl Sync for MainCommandResponse
impl Unpin for MainCommandResponse
impl UnwindSafe for MainCommandResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'a, T> FromBytes<'a> for Twhere
T: FromBytesOwned,
impl<'a, T> FromBytes<'a> for Twhere
T: FromBytesOwned,
§fn from_bytes(data: &'a [u8]) -> Result<T, Error>
fn from_bytes(data: &'a [u8]) -> Result<T, Error>
Decode a value from a slice of bytes