pub struct ApiKeyUpdate {
pub name: Option<String>,
pub scopes: Option<Vec<ApiKeyScope>>,
pub is_active: Option<bool>,
pub expires_at: Option<Option<DateTime<Utc>>>,
}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.
Trait Implementations§
Source§impl Clone for ApiKeyUpdate
impl Clone for ApiKeyUpdate
Source§fn clone(&self) -> ApiKeyUpdate
fn clone(&self) -> ApiKeyUpdate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ApiKeyUpdate
impl Debug for ApiKeyUpdate
Source§impl Default for ApiKeyUpdate
impl Default for ApiKeyUpdate
Source§fn default() -> ApiKeyUpdate
fn default() -> ApiKeyUpdate
Returns the “default value” for a type. Read more
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