pub struct RolePosition {
pub id: Id<RoleMarker>,
pub position: u64,
}
Expand description
Data used to update the positions of roles.
Fields§
§id: Id<RoleMarker>
Role identifier.
position: u64
Sorting position of the role.
Trait Implementations§
source§impl Clone for RolePosition
impl Clone for RolePosition
source§fn clone(&self) -> RolePosition
fn clone(&self) -> RolePosition
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 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
source§impl Hash for RolePosition
impl Hash for RolePosition
source§impl PartialEq for RolePosition
impl PartialEq for RolePosition
source§impl Serialize for RolePosition
impl Serialize for RolePosition
impl Eq 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 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
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
)