pub struct RotationConfig {
pub repo_path: PathBuf,
pub identity_key_alias: Option<KeyAlias>,
pub next_key_alias: Option<KeyAlias>,
}Expand description
Configuration for rotating an identity’s signing keys.
Args:
repo_path: Path to the auths registry (typically~/.auths).identity_key_alias: Keychain alias of the current signing key. IfNone, the first non-next alias for the identity is used.next_key_alias: Keychain alias to store the new key under. Defaults to<identity_key_alias>-rotated-<timestamp>.
Usage:
ⓘ
let config = RotationConfig {
repo_path: PathBuf::from("/home/user/.auths"),
identity_key_alias: Some("main".into()),
next_key_alias: None,
};Fields§
§repo_path: PathBufPath to the auths registry (typically ~/.auths).
identity_key_alias: Option<KeyAlias>Keychain alias of the current signing key (auto-detected if None).
next_key_alias: Option<KeyAlias>Keychain alias for the new rotated key (auto-generated if None).
Trait Implementations§
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