[][src]Struct twilight_http::request::guild::create_guild::RoleFields

pub struct RoleFields {
    pub color: Option<u32>,
    pub hoist: Option<bool>,
    pub id: RoleId,
    pub mentionable: Option<bool>,
    pub name: String,
    pub permissions: Option<Permissions>,
    pub position: Option<i64>,
}

Role fields sent to Discord.

Use RoleFieldsBuilder to build one.

Fields

color: Option<u32>hoist: Option<bool>id: RoleIdmentionable: Option<bool>name: Stringpermissions: Option<Permissions>position: Option<i64>

Trait Implementations

impl Clone for RoleFields[src]

impl Debug for RoleFields[src]

impl Eq for RoleFields[src]

impl From<RoleFieldsBuilder> for RoleFields[src]

pub fn from(builder: RoleFieldsBuilder) -> Self[src]

Convert a RoleFieldsBuilder into a RoleFields.

This is equivalent to calling RoleFieldsBuilder::build.

impl PartialEq<RoleFields> for RoleFields[src]

impl Serialize for RoleFields[src]

impl StructuralEq for RoleFields[src]

impl StructuralPartialEq for RoleFields[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.