Struct twilight_http::request::guild::create_guild::GuildChannelFieldsBuilder
source · pub struct GuildChannelFieldsBuilder(_);Expand description
A builder for a list of channels.
Implementations§
source§impl GuildChannelFieldsBuilder
impl GuildChannelFieldsBuilder
sourcepub fn build(self) -> Vec<GuildChannelFields>
pub fn build(self) -> Vec<GuildChannelFields>
Build the list of channels.
sourcepub fn add_text(self, channel: TextFields) -> Self
pub fn add_text(self, channel: TextFields) -> Self
Add a text channel to the builder.
sourcepub fn add_voice(self, channel: VoiceFields) -> Self
pub fn add_voice(self, channel: VoiceFields) -> Self
Add a voice channel to the builder.
sourcepub fn add_category_builder(self, channel: CategoryFieldsBuilder) -> Self
pub fn add_category_builder(self, channel: CategoryFieldsBuilder) -> Self
Add a category channel builder, and all its children to the builder.
Trait Implementations§
source§impl Clone for GuildChannelFieldsBuilder
impl Clone for GuildChannelFieldsBuilder
source§fn clone(&self) -> GuildChannelFieldsBuilder
fn clone(&self) -> GuildChannelFieldsBuilder
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 GuildChannelFieldsBuilder
impl Debug for GuildChannelFieldsBuilder
source§impl Default for GuildChannelFieldsBuilder
impl Default for GuildChannelFieldsBuilder
source§fn default() -> GuildChannelFieldsBuilder
fn default() -> GuildChannelFieldsBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<GuildChannelFieldsBuilder> for GuildChannelFieldsBuilder
impl PartialEq<GuildChannelFieldsBuilder> for GuildChannelFieldsBuilder
source§fn eq(&self, other: &GuildChannelFieldsBuilder) -> bool
fn eq(&self, other: &GuildChannelFieldsBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for GuildChannelFieldsBuilder
impl StructuralEq for GuildChannelFieldsBuilder
impl StructuralPartialEq for GuildChannelFieldsBuilder
Auto Trait Implementations§
impl RefUnwindSafe for GuildChannelFieldsBuilder
impl Send for GuildChannelFieldsBuilder
impl Sync for GuildChannelFieldsBuilder
impl Unpin for GuildChannelFieldsBuilder
impl UnwindSafe for GuildChannelFieldsBuilder
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.