Struct twilight_http::request::guild::create_guild::RoleFieldsBuilder [−][src]
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
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.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more