[][src]Struct serenity::model::voice::VoiceRegion

pub struct VoiceRegion {
    pub custom: bool,
    pub deprecated: bool,
    pub id: String,
    pub name: String,
    pub optional: bool,
    pub sample_hostname: String,
    pub sample_port: u64,
    pub vip: bool,
    // some fields omitted
}

Information about an available voice region.

Fields

custom: bool

Whether it is a custom voice region, which is used for events.

deprecated: bool

Whether it is a deprecated voice region, which you should avoid using.

id: String

The internal Id of the voice region.

name: String

A recognizable name of the location of the voice region.

optional: bool

Whether the voice region is optimal for use by the current user.

sample_hostname: String

an example hostname.

sample_port: u64

An example port.

vip: bool

Indicator of whether the voice region is only for VIP guilds.

Trait Implementations

impl Clone for VoiceRegion[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for VoiceRegion[src]

impl Serialize for VoiceRegion[src]

impl<'de> Deserialize<'de> for VoiceRegion[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> DebugAny for T where
    T: Any + Debug
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> UnsafeAny for T where
    T: Any