pub struct SetRole(/* private fields */);Expand description
POST /admin/set-role: needs user:set-role. Every role must be defined.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for SetRole
impl<D: Adapter> Endpoint<D> for SetRole
const METHOD: Method = Method::POST
const PATH: &'static str = "/admin/set-role"
type Access = MaybeAuthenticated
type Input = SetRoleInput
type Output = UserOutput
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: SetRoleInput, ) -> Result<UserOutput, AuthError>
Auto Trait Implementations§
impl Forget for SetRole
impl Freeze for SetRole
impl Move for SetRole
impl RefUnwindSafe for SetRole
impl Send for SetRole
impl Sync for SetRole
impl Unpin for SetRole
impl UnsafeUnpin for SetRole
impl UnwindSafe for SetRole
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