pub struct GetToken;Expand description
GET /token: a JWT for the request’s session.
Trait Implementations§
impl Copy for GetToken
Source§impl<D: Adapter> Endpoint<D> for GetToken
impl<D: Adapter> Endpoint<D> for GetToken
const METHOD: Method = Method::GET
const PATH: &'static str = "/token"
type Access = Authenticated
type Input = Map<String, Value>
type Output = TokenOutput
async fn call( &self, ctx: Ctx<D, Authenticated>, _: Map<String, Value>, ) -> Result<TokenOutput, AuthError>
Auto Trait Implementations§
impl Forget for GetToken
impl Freeze for GetToken
impl Move for GetToken
impl RefUnwindSafe for GetToken
impl Send for GetToken
impl Sync for GetToken
impl Unpin for GetToken
impl UnsafeUnpin for GetToken
impl UnwindSafe for GetToken
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