pub struct PlayerUpdate {
pub guild_id: String,
pub state: PlayerState,
}Expand description
Response sent every x seconds by Lavalink about the player state of a guild.
Fields§
§guild_id: StringThe guild id of the player.
state: PlayerStateThe player state.
Trait Implementations§
Source§impl Clone for PlayerUpdate
impl Clone for PlayerUpdate
Source§fn clone(&self) -> PlayerUpdate
fn clone(&self) -> PlayerUpdate
Returns a duplicate 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 moreSource§impl<'de> Deserialize<'de> for PlayerUpdate
impl<'de> Deserialize<'de> for PlayerUpdate
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
Auto Trait Implementations§
impl Freeze for PlayerUpdate
impl RefUnwindSafe for PlayerUpdate
impl Send for PlayerUpdate
impl Sync for PlayerUpdate
impl Unpin for PlayerUpdate
impl UnwindSafe for PlayerUpdate
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