pub struct ApiKeyUpdate {
pub name: Option<String>,
pub scopes: Option<Vec<ApiKeyScope>>,
pub is_active: Option<bool>,
pub expires_at: Option<Option<DateTime<Utc>>>,
pub rate_limit_override: Option<Option<u32>>,
}Expand description
Parameters for updating an API key.
Fields§
§name: Option<String>New name.
scopes: Option<Vec<ApiKeyScope>>New scopes.
is_active: Option<bool>New active status.
expires_at: Option<Option<DateTime<Utc>>>New expiration date. Some(None) removes expiration.
rate_limit_override: Option<Option<u32>>New rate limit override. Some(None) removes the override.
Trait Implementations§
Source§impl Clone for ApiKeyUpdate
impl Clone for ApiKeyUpdate
Source§impl Debug for ApiKeyUpdate
impl Debug for ApiKeyUpdate
Auto Trait Implementations§
impl Freeze for ApiKeyUpdate
impl RefUnwindSafe for ApiKeyUpdate
impl Send for ApiKeyUpdate
impl Sync for ApiKeyUpdate
impl Unpin for ApiKeyUpdate
impl UnsafeUnpin for ApiKeyUpdate
impl UnwindSafe for ApiKeyUpdate
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