#[non_exhaustive]pub struct VoiceServerUpdate {
pub token: CompactString,
pub guild_id: GuildId,
pub endpoint: Option<CompactString>,
}Expand description
The data of the Voice Server Update
dispatch event: where to connect for voice. Debug does not print the token.
discord.js counterpart: the voice server data used by @discordjs/voice.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.token: CompactStringThe voice connection token (secret).
guild_id: GuildIdThe guild.
endpoint: Option<CompactString>The voice server host; None while the server is reallocated (disconnect and wait for
the next update).
Trait Implementations§
Source§impl Clone for VoiceServerUpdate
impl Clone for VoiceServerUpdate
Source§impl Debug for VoiceServerUpdate
impl Debug for VoiceServerUpdate
Source§impl<'de> Deserialize<'de> for VoiceServerUpdate
impl<'de> Deserialize<'de> for VoiceServerUpdate
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 VoiceServerUpdate
Source§impl PartialEq for VoiceServerUpdate
impl PartialEq for VoiceServerUpdate
Source§impl Serialize for VoiceServerUpdate
impl Serialize for VoiceServerUpdate
impl StructuralPartialEq for VoiceServerUpdate
Auto Trait Implementations§
impl Forget for VoiceServerUpdate
impl Freeze for VoiceServerUpdate
impl Move for VoiceServerUpdate
impl RefUnwindSafe for VoiceServerUpdate
impl Send for VoiceServerUpdate
impl Sync for VoiceServerUpdate
impl Unpin for VoiceServerUpdate
impl UnsafeUnpin for VoiceServerUpdate
impl UnwindSafe for VoiceServerUpdate
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