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: RoleIdmentionable: Option<bool>name: Stringpermissions: 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 RoleFieldsimpl Send for RoleFieldsimpl Sync for RoleFieldsimpl Unpin for RoleFieldsimpl UnwindSafe for RoleFieldsBlanket 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