pub struct RoleContent {
pub role_id: String,
pub name: String,
pub position: u32,
pub permissions: u64,
pub scope: RoleScope,
pub color: u32,
pub extra: Map<String, Value>,
}Expand description
CORD-04 §2 Role content (vsk 1), eid == role_id. permissions rides as a
decimal string (§3); unknown fields round-trip (CORD-02 §6).
Fields§
§role_id: String§name: String§position: u32§permissions: u64§scope: RoleScope§color: u32§extra: Map<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for RoleContent
impl Clone for RoleContent
Source§fn clone(&self) -> RoleContent
fn clone(&self) -> RoleContent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RoleContent
impl Debug for RoleContent
Source§impl<'de> Deserialize<'de> for RoleContent
impl<'de> Deserialize<'de> for RoleContent
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
Source§impl PartialEq for RoleContent
impl PartialEq for RoleContent
Source§impl Serialize for RoleContent
impl Serialize for RoleContent
impl StructuralPartialEq for RoleContent
Auto Trait Implementations§
impl Freeze for RoleContent
impl RefUnwindSafe for RoleContent
impl Send for RoleContent
impl Sync for RoleContent
impl Unpin for RoleContent
impl UnsafeUnpin for RoleContent
impl UnwindSafe for RoleContent
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more