pub struct GetUser(/* private fields */);Expand description
GET /admin/get-user?id=..: needs user:get. Answers the user itself, unwrapped.
Trait Implementations§
Source§impl<D: Adapter> Endpoint<D> for GetUser
impl<D: Adapter> Endpoint<D> for GetUser
const METHOD: Method = Method::GET
const PATH: &'static str = "/admin/get-user"
type Access = MaybeAuthenticated
type Input = GetUserQuery
type Output = UserView
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, query: GetUserQuery, ) -> Result<UserView, AuthError>
Auto Trait Implementations§
impl Forget for GetUser
impl Freeze for GetUser
impl Move for GetUser
impl RefUnwindSafe for GetUser
impl Send for GetUser
impl Sync for GetUser
impl Unpin for GetUser
impl UnsafeUnpin for GetUser
impl UnwindSafe for GetUser
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