pub struct CategoryFieldsBuilder { /* private fields */ }
Expand description
A builder for a category channel, and its children.
Implementations§
source§impl CategoryFieldsBuilder
impl CategoryFieldsBuilder
sourcepub const MIN_NAME_LENGTH: usize = 1usize
pub const MIN_NAME_LENGTH: usize = 1usize
The minimum number of UTF-16 code points that can be in a channel name.
This is used by new
.
sourcepub const MAX_NAME_LENGTH: usize = 100usize
pub const MAX_NAME_LENGTH: usize = 100usize
The maximum number of UTF-16 code points that can be in a channel name.
This is used by new
.
sourcepub fn add_text(self, channel: TextFields) -> Self
pub fn add_text(self, channel: TextFields) -> Self
Add a child text channel.
sourcepub fn add_voice(self, channel: VoiceFields) -> Self
pub fn add_voice(self, channel: VoiceFields) -> Self
add a child voice channel.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CategoryFieldsBuilder
impl RefUnwindSafe for CategoryFieldsBuilder
impl Send for CategoryFieldsBuilder
impl Sync for CategoryFieldsBuilder
impl Unpin for CategoryFieldsBuilder
impl UnwindSafe for CategoryFieldsBuilder
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