#[non_exhaustive]pub struct Equalizer {
pub bands: Vec<EqualizerBand>,
pub guild_id: Id<GuildMarker>,
pub op: Opcode,
}
Expand description
Equalize a player.
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.bands: Vec<EqualizerBand>
The bands to use as part of the equalizer.
guild_id: Id<GuildMarker>
The guild ID of the player.
op: Opcode
The opcode of the event.
Implementations§
Source§impl Equalizer
impl Equalizer
Sourcepub fn new(guild_id: Id<GuildMarker>, bands: Vec<EqualizerBand>) -> Self
pub fn new(guild_id: Id<GuildMarker>, bands: Vec<EqualizerBand>) -> Self
Create a new equalizer event.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Equalizer
impl<'de> Deserialize<'de> for Equalizer
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 From<(Id<GuildMarker>, Vec<EqualizerBand>)> for Equalizer
impl From<(Id<GuildMarker>, Vec<EqualizerBand>)> for Equalizer
Source§fn from((guild_id, bands): (Id<GuildMarker>, Vec<EqualizerBand>)) -> Self
fn from((guild_id, bands): (Id<GuildMarker>, Vec<EqualizerBand>)) -> Self
Converts to this type from the input type.
Source§impl From<Equalizer> for OutgoingEvent
impl From<Equalizer> for OutgoingEvent
Source§fn from(event: Equalizer) -> OutgoingEvent
fn from(event: Equalizer) -> OutgoingEvent
Converts to this type from the input type.
impl StructuralPartialEq for Equalizer
Auto Trait Implementations§
impl Freeze for Equalizer
impl RefUnwindSafe for Equalizer
impl Send for Equalizer
impl Sync for Equalizer
impl Unpin for Equalizer
impl UnwindSafe for Equalizer
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