pub struct ChannelBuilder { /* private fields */ }Expand description
Builder for Channel.
Implementations§
Source§impl ChannelBuilder
impl ChannelBuilder
pub fn id<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn type<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn guild_id<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn position<VALUE: Into<i64>>(&mut self, value: VALUE) -> &mut Self
pub fn permission_overwrites<VALUE: Into<Vec<Overwrite>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn topic<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn nsfw<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn last_message_id<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn bitrate<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn user_limit<VALUE: Into<u16>>(&mut self, value: VALUE) -> &mut Self
pub fn rate_limit_per_user<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn recipients<VALUE: Into<Vec<User>>>(&mut self, value: VALUE) -> &mut Self
pub fn icon<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn owner_id<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn application_id<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn managed<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
pub fn parent_id<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn last_pin_timestamp<VALUE: Into<DateTime<Utc>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn rtc_region<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn video_quality_mode<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn message_count<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn member_count<VALUE: Into<u32>>(&mut self, value: VALUE) -> &mut Self
pub fn thread_metadata<VALUE: Into<ThreadMetadata>>( &mut self, value: VALUE, ) -> &mut Self
pub fn member<VALUE: Into<ThreadMember>>(&mut self, value: VALUE) -> &mut Self
pub fn default_auto_archive_duration<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn permissions<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn flags<VALUE: Into<u64>>(&mut self, value: VALUE) -> &mut Self
pub fn total_message_sent<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn default_reaction_emoji<VALUE: Into<DefaultReaction>>( &mut self, value: VALUE, ) -> &mut Self
pub fn default_thread_rate_limit_per_user<VALUE: Into<u32>>( &mut self, value: VALUE, ) -> &mut Self
pub fn default_sort_order<VALUE: Into<u8>>(&mut self, value: VALUE) -> &mut Self
pub fn default_forum_layout<VALUE: Into<u8>>( &mut self, value: VALUE, ) -> &mut Self
Trait Implementations§
Source§impl Clone for ChannelBuilder
impl Clone for ChannelBuilder
Source§fn clone(&self) -> ChannelBuilder
fn clone(&self) -> ChannelBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ChannelBuilder
impl RefUnwindSafe for ChannelBuilder
impl Send for ChannelBuilder
impl Sync for ChannelBuilder
impl Unpin for ChannelBuilder
impl UnsafeUnpin for ChannelBuilder
impl UnwindSafe for ChannelBuilder
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