pub struct RoleFields {
pub color: Option<u32>,
pub hoist: Option<bool>,
pub id: Id<RoleMarker>,
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: Id<RoleMarker>
§mentionable: Option<bool>
§name: String
§permissions: Option<Permissions>
§position: Option<i64>
Trait Implementations§
source§impl Clone for RoleFields
impl Clone for RoleFields
source§fn clone(&self) -> RoleFields
fn clone(&self) -> RoleFields
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RoleFields
impl Debug for RoleFields
source§impl PartialEq for RoleFields
impl PartialEq for RoleFields
source§impl Serialize for RoleFields
impl Serialize for RoleFields
impl Eq for RoleFields
impl StructuralPartialEq for RoleFields
Auto Trait Implementations§
impl Freeze for RoleFields
impl RefUnwindSafe for RoleFields
impl Send for RoleFields
impl Sync for RoleFields
impl Unpin for RoleFields
impl UnwindSafe for RoleFields
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more