[][src]Struct spectacles_model::guild::ModifyRoleOptions

pub struct ModifyRoleOptions { /* fields omitted */ }

Options for modifying a role in a guild.

Methods

impl ModifyRoleOptions[src]

pub fn name(self, name: &str) -> Self[src]

Sets a new name for the role.

pub fn permissions(self, perms: i32) -> Self[src]

Sets the new permissions for the role.

pub fn color(self, clr: i32) -> Self[src]

Sets the new color of the role.

pub fn hoisted(self, opt: bool) -> Self[src]

Sets the hoist status of this role.

pub fn mentionable(self, opt: bool) -> Self[src]

Sets the mentionable status of this role.

Trait Implementations

impl Clone for ModifyRoleOptions[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for ModifyRoleOptions[src]

impl Debug for ModifyRoleOptions[src]

impl Serialize for ModifyRoleOptions[src]

impl<'de> Deserialize<'de> for ModifyRoleOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]