pub struct RolePosition {
pub role_id: RoleId,
pub position: u32,
}Expand description
One entry of role.reorder and role.reordered (§8.4, §9.2).
Fields§
§role_id: RoleIdThe role moved.
position: u32Its new position (≥ 1).
Trait Implementations§
Source§impl Clone for RolePosition
impl Clone for RolePosition
Source§fn clone(&self) -> RolePosition
fn clone(&self) -> RolePosition
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 moreimpl Copy for RolePosition
Source§impl Debug for RolePosition
impl Debug for RolePosition
Source§impl<'de> Deserialize<'de> for RolePosition
impl<'de> Deserialize<'de> for RolePosition
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
impl Eq for RolePosition
Source§impl PartialEq for RolePosition
impl PartialEq for RolePosition
Source§impl Serialize for RolePosition
impl Serialize for RolePosition
impl StructuralPartialEq for RolePosition
Auto Trait Implementations§
impl Freeze for RolePosition
impl RefUnwindSafe for RolePosition
impl Send for RolePosition
impl Sync for RolePosition
impl Unpin for RolePosition
impl UnsafeUnpin for RolePosition
impl UnwindSafe for RolePosition
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