pub struct SoundboardSound<'a> {
pub name: String,
pub sound_id: Snowflake,
pub volume: f64,
pub emoji_id: Option<Snowflake>,
pub emoji_name: Option<String>,
pub guild_id: Option<Snowflake>,
pub available: bool,
pub user: Option<User<'a>>,
}Expand description
A soundboard sound.
Fields§
§name: StringThe name of this sound.
sound_id: SnowflakeThe ID of this sound.
volume: f64The volume of this sound (0 to 1).
emoji_id: Option<Snowflake>The ID of this sound’s custom emoji.
emoji_name: Option<String>The unicode character of this sound’s standard emoji.
guild_id: Option<Snowflake>The ID of the guild this sound is in.
available: boolWhether this sound can be used.
user: Option<User<'a>>The user who created this sound.
Trait Implementations§
Source§impl<'a> Clone for SoundboardSound<'a>
impl<'a> Clone for SoundboardSound<'a>
Source§fn clone(&self) -> SoundboardSound<'a>
fn clone(&self) -> SoundboardSound<'a>
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<'a> Debug for SoundboardSound<'a>
impl<'a> Debug for SoundboardSound<'a>
Source§impl<'de, 'a> Deserialize<'de> for SoundboardSound<'a>
impl<'de, 'a> Deserialize<'de> for SoundboardSound<'a>
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<'a> Freeze for SoundboardSound<'a>
impl<'a> RefUnwindSafe for SoundboardSound<'a>
impl<'a> Send for SoundboardSound<'a>
impl<'a> Sync for SoundboardSound<'a>
impl<'a> Unpin for SoundboardSound<'a>
impl<'a> UnwindSafe for SoundboardSound<'a>
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