pub struct GuildChannelFieldsBuilder(/* private fields */);
Expand description
A builder for a list of channels.
Implementations§
source§impl GuildChannelFieldsBuilder
impl GuildChannelFieldsBuilder
sourcepub fn build(self) -> Result<Vec<GuildChannelFields>, CategoryFieldsError>
pub fn build(self) -> Result<Vec<GuildChannelFields>, CategoryFieldsError>
Build the list of channels.
§Errors
Returns a CategoryFieldsErrorType::NameTooShort
error type if the
name of a category is too short.
Returns a CategoryFieldsErrorType::NameTooLong
error type if the
name of a category is too long.
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 Debug for GuildChannelFieldsBuilder
impl Debug for GuildChannelFieldsBuilder
Auto Trait Implementations§
impl Freeze for GuildChannelFieldsBuilder
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