pub struct CreateKeyRequest {
pub tenant_id: String,
pub name: String,
pub scopes: Vec<String>,
pub expires_at: Option<String>,
}Expand description
Input for super::ApiKeyStore::create.
All fields except expires_at are required. Pass None for
expires_at to create a non-expiring key.
Fields§
§tenant_id: StringTenant this key belongs to. Required.
name: StringHuman-readable name for the key.
scopes: Vec<String>Scopes this key grants. Framework stores, app defines meaning.
expires_at: Option<String>Expiration timestamp (ISO 8601). None for lifetime tokens.
Auto Trait Implementations§
impl Freeze for CreateKeyRequest
impl RefUnwindSafe for CreateKeyRequest
impl Send for CreateKeyRequest
impl Sync for CreateKeyRequest
impl Unpin for CreateKeyRequest
impl UnsafeUnpin for CreateKeyRequest
impl UnwindSafe for CreateKeyRequest
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