pub struct SoundboardSoundApiType {
pub name: String,
pub sound_id: String,
pub volume: f64,
pub emoji_id: Option<String>,
pub emoji_name: Option<String>,
pub guild_id: Option<String>,
pub available: bool,
pub user: Option<UserApiType>,
}Fields§
§name: Stringthe name of this sound
sound_id: Stringthe id of this sound
volume: f64the volume of this sound, from 0 to 1
emoji_id: Option<String>the id of this sound’s custom emoji
emoji_name: Option<String>the unicode character of this sound’s standard emoji
guild_id: Option<String>the id of the guild this sound is in
available: boolwhether this sound can be used, may be false due to loss of Server Boosts
user: Option<UserApiType>the user who created this sound
Trait Implementations§
Source§impl Clone for SoundboardSoundApiType
impl Clone for SoundboardSoundApiType
Source§fn clone(&self) -> SoundboardSoundApiType
fn clone(&self) -> SoundboardSoundApiType
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 Debug for SoundboardSoundApiType
impl Debug for SoundboardSoundApiType
Source§impl<'de> Deserialize<'de> for SoundboardSoundApiType
impl<'de> Deserialize<'de> for SoundboardSoundApiType
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 SoundboardSoundApiType
impl RefUnwindSafe for SoundboardSoundApiType
impl Send for SoundboardSoundApiType
impl Sync for SoundboardSoundApiType
impl Unpin for SoundboardSoundApiType
impl UnwindSafe for SoundboardSoundApiType
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