pub struct CreateApiKey {
pub name: Option<String>,
pub permissions: Option<ApiKeyPermissions>,
pub expires_at: Option<String>,
pub client_id: Option<String>,
pub public_key: Option<Value>,
}Expand description
Request body for create_api_key. The default (no public_key) mints a
bearer key; setting public_key registers a public_key credential
instead. The full secret of a bearer key is returned exactly once, in
CreatedApiKey::api_key.
Fields§
§name: Option<String>Human-readable name for the key.
permissions: Option<ApiKeyPermissions>The permissions to grant.
expires_at: Option<String>When the key should stop working (RFC 3339).
client_id: Option<String>Your reference id, when registering a public_key credential.
public_key: Option<Value>The public JWK (kty, crv, x, y); its presence selects the
public_key credential flow.
Trait Implementations§
Source§impl Clone for CreateApiKey
impl Clone for CreateApiKey
Source§impl Debug for CreateApiKey
impl Debug for CreateApiKey
Source§impl Default for CreateApiKey
impl Default for CreateApiKey
Auto Trait Implementations§
impl Freeze for CreateApiKey
impl RefUnwindSafe for CreateApiKey
impl Send for CreateApiKey
impl Sync for CreateApiKey
impl Unpin for CreateApiKey
impl UnsafeUnpin for CreateApiKey
impl UnwindSafe 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