Struct twilight_model::voice::VoiceRegion
source · 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: boolWhether this is a custom voice region, used for e.g. events.
deprecated: boolWhether this is a deprecated voice region (avoid switching to these).
id: StringUnique region identifier.
name: StringName of the region.
optimal: boolWhether 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<VoiceRegion> for VoiceRegion
impl PartialEq<VoiceRegion> for VoiceRegion
source§fn eq(&self, other: &VoiceRegion) -> bool
fn eq(&self, other: &VoiceRegion) -> bool
This method tests for
self and other values to be equal, and is used
by ==.