pub struct RotationConfig {
pub grace_period: Duration,
pub new_key_id: String,
pub owner_id: String,
pub name: String,
pub prefix: String,
pub scopes: Vec<String>,
pub expires_at: Option<DateTime<Utc>>,
}Expand description
Rotation settings for API keys.
Fields§
§grace_period: DurationGrace period for the old key.
new_key_id: StringReplacement key identifier.
owner_id: StringReplacement key owner.
name: StringReplacement key display name.
prefix: StringReplacement key prefix.
scopes: Vec<String>Replacement scopes. Empty reuses the existing key scopes.
expires_at: Option<DateTime<Utc>>Optional replacement expiry.
Trait Implementations§
Source§impl Clone for RotationConfig
impl Clone for RotationConfig
Source§fn clone(&self) -> RotationConfig
fn clone(&self) -> RotationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RotationConfig
impl Debug for RotationConfig
Auto Trait Implementations§
impl Freeze for RotationConfig
impl RefUnwindSafe for RotationConfig
impl Send for RotationConfig
impl Sync for RotationConfig
impl Unpin for RotationConfig
impl UnsafeUnpin for RotationConfig
impl UnwindSafe for RotationConfig
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