[−][src]Struct twilight_http::request::guild::create_guild::RoleFieldsBuilder
A builder for role fields.
Implementations
impl RoleFieldsBuilder
[src]
pub const COLOR_MAXIMUM: u32
[src]
The maximumn accepted color value.
This is used by color
.
pub fn new(name: impl Into<String>) -> Self
[src]
Create a new default role field builder.
pub fn build(self) -> RoleFields
[src]
Build the role fields.
pub fn color(mut self: Self, color: u32) -> Result<Self, RoleFieldsError>
[src]
Set the role color.
This must be a valid hexadecimal RGB value.
Errors
Returns RoleFieldsError::ColorNotRgb
if the color is not valid RGB.
pub fn hoist(mut self: Self) -> Self
[src]
Show the role above other roles in the user list.
pub fn id(mut self: Self, id: RoleId) -> Result<Self, RoleFieldsError>
[src]
pub fn mentionable(mut self: Self) -> Self
[src]
Allow the role to be @mentioned.
pub fn permissions(mut self: Self, permissions: Permissions) -> Self
[src]
Set the permissions of the role.
pub fn position(mut self: Self, position: i64) -> Self
[src]
Set the position of the role.
Trait Implementations
impl Clone for RoleFieldsBuilder
[src]
pub fn clone(&self) -> RoleFieldsBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RoleFieldsBuilder
[src]
impl Eq for RoleFieldsBuilder
[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<RoleFieldsBuilder> for RoleFieldsBuilder
[src]
pub fn eq(&self, other: &RoleFieldsBuilder) -> bool
[src]
pub fn ne(&self, other: &RoleFieldsBuilder) -> bool
[src]
impl StructuralEq for RoleFieldsBuilder
[src]
impl StructuralPartialEq for RoleFieldsBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for RoleFieldsBuilder
[src]
impl Send for RoleFieldsBuilder
[src]
impl Sync for RoleFieldsBuilder
[src]
impl Unpin for RoleFieldsBuilder
[src]
impl UnwindSafe for RoleFieldsBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,