pub struct SetRoleInput {
pub user_id: Id,
pub role: Roles,
}Expand description
Body of /admin/set-role.
Fields§
§user_id: Id§role: RolesTrait Implementations§
Source§impl Clone for SetRoleInput
impl Clone for SetRoleInput
Source§impl Debug for SetRoleInput
impl Debug for SetRoleInput
Source§impl<'de> Deserialize<'de> for SetRoleInput
impl<'de> Deserialize<'de> for SetRoleInput
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 Forget for SetRoleInput
impl Freeze for SetRoleInput
impl Move for SetRoleInput
impl RefUnwindSafe for SetRoleInput
impl Send for SetRoleInput
impl Sync for SetRoleInput
impl Unpin for SetRoleInput
impl UnsafeUnpin for SetRoleInput
impl UnwindSafe for SetRoleInput
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