pub struct Soundboard {
pub id: SoundId,
pub name: String,
pub volume: f64,
pub emoji_id: Option<EmojiId>,
pub emoji_name: Option<String>,
pub guild_id: Option<GuildId>,
pub available: bool,
pub user: Option<User>,
}Expand description
A representation of a soundboard sound, a kind of audio that users can play in voice channels.
Fields§
§id: SoundIdThe unique Id of the soundboard sound. Can be used to calculate the creation date of the soundboard sound.
name: StringThe name of this soundboard sound.
volume: f64Volume of this soundboard sound. The valid range is from 0 to 1.
emoji_id: Option<EmojiId>Id of the emoji for this soundboard sound.
emoji_name: Option<String>Unicode character of the emoji for this soundboard sound.
guild_id: Option<GuildId>Id of the guild this soundboard sound belongs to.
available: boolWhether this soundboard sound may be used. Can be false if the guild
lost Nitro boosts, for instance.
user: Option<User>User who created this soundboard sound.
Trait Implementations§
Source§impl Clone for Soundboard
impl Clone for Soundboard
Source§fn clone(&self) -> Soundboard
fn clone(&self) -> Soundboard
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 Soundboard
impl Debug for Soundboard
Source§impl Default for Soundboard
impl Default for Soundboard
Source§fn default() -> Soundboard
fn default() -> Soundboard
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Soundboard
impl<'de> Deserialize<'de> for Soundboard
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 Soundboard
impl RefUnwindSafe for Soundboard
impl Send for Soundboard
impl Sync for Soundboard
impl Unpin for Soundboard
impl UnwindSafe for Soundboard
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