#[non_exhaustive]pub struct SoundboardSounds {
pub soundboard_sounds: Vec<SoundboardSound>,
pub guild_id: GuildId,
}Expand description
The data of the Soundboard Sounds
dispatch event: a guild’s sounds, sent in response to a
RequestSoundboardSounds command.
discord.js counterpart: the SoundboardSounds event.
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.soundboard_sounds: Vec<SoundboardSound>The guild’s sounds.
guild_id: GuildIdThe guild.
Trait Implementations§
Source§impl Clone for SoundboardSounds
impl Clone for SoundboardSounds
Source§impl Debug for SoundboardSounds
impl Debug for SoundboardSounds
Source§impl<'de> Deserialize<'de> for SoundboardSounds
impl<'de> Deserialize<'de> for SoundboardSounds
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
Source§impl PartialEq for SoundboardSounds
impl PartialEq for SoundboardSounds
Source§impl Serialize for SoundboardSounds
impl Serialize for SoundboardSounds
impl StructuralPartialEq for SoundboardSounds
Auto Trait Implementations§
impl Freeze for SoundboardSounds
impl RefUnwindSafe for SoundboardSounds
impl Send for SoundboardSounds
impl Sync for SoundboardSounds
impl Unpin for SoundboardSounds
impl UnsafeUnpin for SoundboardSounds
impl UnwindSafe for SoundboardSounds
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