pub struct VoiceRegion {
pub custom: bool,
pub deprecated: bool,
pub id: String,
pub name: String,
pub optimal: bool,
}
Expand description
Geographically based collection of voice servers.
Fields§
§custom: bool
Whether this is a custom voice region, used for e.g. events.
deprecated: bool
Whether this is a deprecated voice region (avoid switching to these).
id: String
Unique region identifier.
name: String
Name of the region.
optimal: bool
Whether this is the closest region to the current user’s client.
Trait Implementations§
source§impl Clone for VoiceRegion
impl Clone for VoiceRegion
source§fn clone(&self) -> VoiceRegion
fn clone(&self) -> VoiceRegion
Returns a copy 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
source§impl Hash for VoiceRegion
impl Hash for VoiceRegion
source§impl PartialEq for VoiceRegion
impl PartialEq for VoiceRegion
source§impl Serialize for VoiceRegion
impl Serialize for VoiceRegion
impl Eq for VoiceRegion
impl StructuralPartialEq for VoiceRegion
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)