pub struct ModifyChannelOptions { /* private fields */ }Expand description
Options for modifying a Discord channel.
Implementations§
Source§impl ModifyChannelOptions
impl ModifyChannelOptions
pub fn new() -> Self
Sourcepub fn set_position(self, pos: i32) -> Self
pub fn set_position(self, pos: i32) -> Self
Sets a new position for this channel.
Sourcepub fn rate_limit_per_user(self, secs: i8) -> Self
pub fn rate_limit_per_user(self, secs: i8) -> Self
Modifies this channel’s message rate limit per user.
Sourcepub fn user_limit(self, limit: i32) -> Self
pub fn user_limit(self, limit: i32) -> Self
Modifies this channel’s user limit, if a voice channel.
Trait Implementations§
Source§impl Clone for ModifyChannelOptions
impl Clone for ModifyChannelOptions
Source§fn clone(&self) -> ModifyChannelOptions
fn clone(&self) -> ModifyChannelOptions
Returns a duplicate 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 ModifyChannelOptions
impl Debug for ModifyChannelOptions
Source§impl Default for ModifyChannelOptions
impl Default for ModifyChannelOptions
Source§fn default() -> ModifyChannelOptions
fn default() -> ModifyChannelOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ModifyChannelOptions
impl RefUnwindSafe for ModifyChannelOptions
impl Send for ModifyChannelOptions
impl Sync for ModifyChannelOptions
impl Unpin for ModifyChannelOptions
impl UnwindSafe for ModifyChannelOptions
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