Struct twilight_http::request::guild::create_guild::RoleFields [−][src]
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>, }
Expand description
Role fields sent to Discord.
Use RoleFieldsBuilder
to build one.
Fields
color: Option<u32>
hoist: Option<bool>
id: RoleId
mentionable: Option<bool>
name: String
permissions: Option<Permissions>
position: Option<i64>
Trait Implementations
Convert a RoleFieldsBuilder
into a RoleFields
.
This is equivalent to calling RoleFieldsBuilder::build
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for RoleFields
impl Send for RoleFields
impl Sync for RoleFields
impl Unpin for RoleFields
impl UnwindSafe for RoleFields
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V