pub struct HasPermission(/* private fields */);Expand description
POST /admin/has-permission: whether the signed-in user (any user, not only admins)
may do everything in permissions.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for HasPermission
impl<D: Adapter> Endpoint<D> for HasPermission
const METHOD: Method = Method::POST
const PATH: &'static str = "/admin/has-permission"
type Access = MaybeAuthenticated
type Input = HasPermissionInput
type Output = PermissionOutput
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: HasPermissionInput, ) -> Result<PermissionOutput, AuthError>
Auto Trait Implementations§
impl Forget for HasPermission
impl Freeze for HasPermission
impl Move for HasPermission
impl RefUnwindSafe for HasPermission
impl Send for HasPermission
impl Sync for HasPermission
impl Unpin for HasPermission
impl UnsafeUnpin for HasPermission
impl UnwindSafe for HasPermission
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