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

#[must_use = "must be built into a category channel"]pub struct CategoryFieldsBuilder { /* fields omitted */ }

A builder for a category channel, and its children.

Implementations

impl CategoryFieldsBuilder[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, CategoryFieldsError>[src]

Create a new category fields builder.

Errors

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

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

pub fn add_text(mut self: Self, channel: impl Into<TextFields>) -> Self[src]

Add a child text channel.

pub fn add_voice(mut self: Self, channel: impl Into<VoiceFields>) -> Self[src]

add a child voice channel.

Trait Implementations

impl Clone for CategoryFieldsBuilder[src]

impl Debug for CategoryFieldsBuilder[src]

impl Eq for CategoryFieldsBuilder[src]

impl PartialEq<CategoryFieldsBuilder> for CategoryFieldsBuilder[src]

impl StructuralEq for CategoryFieldsBuilder[src]

impl StructuralPartialEq for CategoryFieldsBuilder[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>,