Enum MainCommand
pub enum MainCommand {
Show 20 variants
GetSong(GetSongOptions),
GetEntity(GetEntityOptions),
GetCurrentSong(),
GetPlayerState(),
GetVolume(),
GetTime(),
GetQueue(),
GetPreference(PreferenceData),
SetPreference(PreferenceData),
GetSecure(PreferenceData),
SetSecure(PreferenceData),
AddSongs(Vec<Song>),
RemoveSong(Song),
UpdateSong(Song),
AddPlaylist(QueryablePlaylist),
AddToPlaylist(AddToPlaylistRequest),
RegisterOAuth(String),
OpenExternalUrl(String),
UpdateAccounts(Option<String>),
ExtensionsUpdated(),
}
Variants§
GetSong(GetSongOptions)
GetEntity(GetEntityOptions)
GetCurrentSong()
GetPlayerState()
GetVolume()
GetTime()
GetQueue()
GetPreference(PreferenceData)
SetPreference(PreferenceData)
GetSecure(PreferenceData)
SetSecure(PreferenceData)
AddSongs(Vec<Song>)
RemoveSong(Song)
UpdateSong(Song)
AddPlaylist(QueryablePlaylist)
AddToPlaylist(AddToPlaylistRequest)
RegisterOAuth(String)
OpenExternalUrl(String)
UpdateAccounts(Option<String>)
ExtensionsUpdated()
Trait Implementations§
§impl Clone for MainCommand
impl Clone for MainCommand
§fn clone(&self) -> MainCommand
fn clone(&self) -> MainCommand
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 MainCommand
impl Debug for MainCommand
§impl<'de> Deserialize<'de> for MainCommand
impl<'de> Deserialize<'de> for MainCommand
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MainCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MainCommand, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl FromBytesOwned for MainCommandwhere
Json<MainCommand>: FromBytesOwned,
impl FromBytesOwned for MainCommandwhere
Json<MainCommand>: FromBytesOwned,
§fn from_bytes_owned(__data: &[u8]) -> Result<MainCommand, Error>
fn from_bytes_owned(__data: &[u8]) -> Result<MainCommand, Error>
Decode a value from a slice of bytes, the resulting value should not borrow the input
data.
§impl Serialize for MainCommand
impl Serialize for MainCommand
§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 MainCommandwhere
Json<&'__to_bytes_b MainCommand>: for<'__to_bytes_b> ToBytes<'__to_bytes_b>,
impl<'__to_bytes_a> ToBytes<'__to_bytes_a> for MainCommandwhere
Json<&'__to_bytes_b MainCommand>: for<'__to_bytes_b> ToBytes<'__to_bytes_b>,
Auto Trait Implementations§
impl Freeze for MainCommand
impl RefUnwindSafe for MainCommand
impl Send for MainCommand
impl Sync for MainCommand
impl Unpin for MainCommand
impl UnwindSafe for MainCommand
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