pub struct PartialRole {
pub name: Option<String>,
pub permissions: Option<OverrideField>,
pub colour: Option<String>,
pub hoist: Option<bool>,
pub rank: Option<i64>,
}Expand description
Partial representation of a server role
Fields§
§name: Option<String>Role name
permissions: Option<OverrideField>Permissions available to this role
colour: Option<String>Colour used for this role
This can be any valid CSS colour
hoist: Option<bool>Whether this role should be shown separately on the member sidebar
rank: Option<i64>Ranking of this role
Trait Implementations§
Source§impl Clone for PartialRole
impl Clone for PartialRole
Source§fn clone(&self) -> PartialRole
fn clone(&self) -> PartialRole
Returns a duplicate 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 PartialRole
impl Debug for PartialRole
Source§impl<'de> Deserialize<'de> for PartialRole
impl<'de> Deserialize<'de> for PartialRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PartialRole
impl RefUnwindSafe for PartialRole
impl Send for PartialRole
impl Sync for PartialRole
impl Unpin for PartialRole
impl UnwindSafe for PartialRole
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