pub struct CreateApiKey { /* private fields */ }Expand description
POST /api-key/create.
Implementations§
Trait Implementations§
Source§impl Clone for CreateApiKey
impl Clone for CreateApiKey
Source§impl Debug for CreateApiKey
impl Debug for CreateApiKey
Source§impl<D: Adapter> Endpoint<D> for CreateApiKey
impl<D: Adapter> Endpoint<D> for CreateApiKey
const METHOD: Method = Method::POST
const PATH: &'static str = "/api-key/create"
type Access = MaybeAuthenticated
type Input = CreateApiKeyInput
type Output = CreatedApiKey
async fn call( &self, ctx: Ctx<D, MaybeAuthenticated>, input: CreateApiKeyInput, ) -> Result<CreatedApiKey, AuthError>
Auto Trait Implementations§
impl !RefUnwindSafe for CreateApiKey
impl !UnwindSafe for CreateApiKey
impl Forget for CreateApiKey
impl Freeze for CreateApiKey
impl Move for CreateApiKey
impl Send for CreateApiKey
impl Sync for CreateApiKey
impl Unpin for CreateApiKey
impl UnsafeUnpin for CreateApiKey
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