pub struct VoiceRegion {
pub id: String,
pub name: String,
pub vip: bool,
pub optimal: bool,
pub deprecated: bool,
pub custom: bool,
}Expand description
Represents a Discord voice region.
Fields§
§id: StringThe ID of this voice region.
name: StringThe name of this voice region.
vip: boolWhether or not this server is a VIP-only server.
optimal: boolWhetehr or not this region is the closest to the user’s client.
deprecated: boolWhether or not this voice region has been deprecated.
custom: boolWhether or not this is a custom voice region.
Trait Implementations§
Source§impl Clone for VoiceRegion
impl Clone for VoiceRegion
Source§fn clone(&self) -> VoiceRegion
fn clone(&self) -> VoiceRegion
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 VoiceRegion
impl Debug for VoiceRegion
Source§impl<'de> Deserialize<'de> for VoiceRegion
impl<'de> Deserialize<'de> for VoiceRegion
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 VoiceRegion
impl RefUnwindSafe for VoiceRegion
impl Send for VoiceRegion
impl Sync for VoiceRegion
impl Unpin for VoiceRegion
impl UnwindSafe for VoiceRegion
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