[][src]Struct spectacles_model::guild::CreateRoleOptions

pub struct CreateRoleOptions { /* fields omitted */ }

Options for creating a role in a guild.

Methods

impl CreateRoleOptions[src]

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

Sets the name of the role.

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

Sets the permissions that this role should have.

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

Sets the color of the role.

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

Sets the hoisted status of this role.

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

Sets the mentionable status of this user.

Trait Implementations

impl Clone for CreateRoleOptions[src]

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

Performs copy-assignment from source. Read more

impl Default for CreateRoleOptions[src]

impl Debug for CreateRoleOptions[src]

impl Serialize for CreateRoleOptions[src]

impl<'de> Deserialize<'de> for CreateRoleOptions[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]