[][src]Struct twilight_http::request::guild::create_guild::VoiceFieldsBuilder

#[must_use = "must be built into a voice channel"]pub struct VoiceFieldsBuilder(_);

A builder for voice fields.

Implementations

impl VoiceFieldsBuilder[src]

pub const MIN_NAME_LENGTH: usize[src]

The minimum number of UTF-16 code points that can be in a channel name.

This is used by new.

pub const MAX_NAME_LENGTH: usize[src]

The maximum number of UTF-16 code points that can be in a channel name.

This is used by new.

pub fn new(name: impl Into<String>) -> Result<Self, VoiceFieldsError>[src]

Create a new voice fields builder.

Errors

Returns VoiceFieldsError::NameTooShort if the name is too short.

Returns VoiceFieldsError::NameTooLong if the name is too long.

pub fn build(self) -> VoiceFields[src]

Build the voice fields.

pub fn bitrate(mut self: Self, bitrate: u64) -> Self[src]

Set the voice channel's bitrate.

pub fn permission_overwrites(
    mut self: Self,
    overwrites: Vec<PermissionOverwrite>
) -> Self
[src]

Set the channel's permission overwrites.

pub fn user_limit(mut self: Self, limit: u64) -> Self[src]

Set the voice channel's user limit.

Trait Implementations

impl Clone for VoiceFieldsBuilder[src]

impl Debug for VoiceFieldsBuilder[src]

impl Eq for VoiceFieldsBuilder[src]

impl From<VoiceFieldsBuilder> for VoiceFields[src]

impl PartialEq<VoiceFieldsBuilder> for VoiceFieldsBuilder[src]

impl StructuralEq for VoiceFieldsBuilder[src]

impl StructuralPartialEq for VoiceFieldsBuilder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,