Struct twilight_http::request::guild::create_guild::RoleFieldsBuilder [−][src]
#[must_use = "must be built into a role"]pub struct RoleFieldsBuilder(_);
Expand description
A builder for role fields.
Implementations
The maximumn accepted color value.
This is used by color
.
Build the role fields.
Set the role color.
This must be a valid hexadecimal RGB value.
Errors
Returns a RoleFieldsErrorType::ColorNotRgb
error type if the color
is not valid RGB.
Set the id of the role.
Errors
Returns a RoleFieldsErrorType::IdInvalid
error type if the ID is set
to 1.
Allow the role to be @mentioned.
Set the permissions of the role.
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 RoleFieldsBuilder
impl Send for RoleFieldsBuilder
impl Sync for RoleFieldsBuilder
impl Unpin for RoleFieldsBuilder
impl UnwindSafe for RoleFieldsBuilder
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