Struct twilight_http::request::guild::create_guild::RoleFields
source · 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<RoleFields> for RoleFields
impl PartialEq<RoleFields> for RoleFields
source§fn eq(&self, other: &RoleFields) -> bool
fn eq(&self, other: &RoleFields) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RoleFields
impl Serialize for RoleFields
impl Eq for RoleFields
impl StructuralEq for RoleFields
impl StructuralPartialEq for RoleFields
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.