[−][src]Struct spectacles_model::channel::ModifyChannel
Options for modifying a Discord channel.
Methods
impl ModifyChannel[src]
pub fn new() -> Self[src]
pub fn name(self, new_name: &str) -> Self[src]
Sets a new name for this channel.
pub fn set_position(self, pos: i32) -> Self[src]
Sets a new position for this channel.
pub fn topic(self, top: &str) -> Self[src]
Sets a new topic for this channel.
pub fn nsfw(self, opt: bool) -> Self[src]
Changes the NSFW flag for this channel.
pub fn rate_limit_per_user(self, secs: i8) -> Self[src]
Modifies this channel's message rate limit per user.
pub fn user_limit(self, limit: i32) -> Self[src]
Modifies this channel's user limit, if a voice channel.
pub fn parent_id(self, id: u64) -> Self[src]
Modifies this channel's parent category ID.
Trait Implementations
impl Default for ModifyChannel[src]
fn default() -> ModifyChannel[src]
impl Clone for ModifyChannel[src]
fn clone(&self) -> ModifyChannel[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for ModifyChannel[src]
impl Serialize for ModifyChannel[src]
Auto Trait Implementations
impl Send for ModifyChannel
impl Sync for ModifyChannel
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,