pub struct KeyGenOptions {
pub target: KeyStoreTarget,
pub key_name: Option<String>,
pub file_path: Option<PathBuf>,
pub force: bool,
}Expand description
Options for key generation via SecretManager::generate_and_save.
Fields§
§target: KeyStoreTargetWhere to save the generated key.
key_name: Option<String>Explicit key name (overrides AGE_KEY_NAME and .env
file discovery). Example: "ekg/wwkg".
file_path: Option<PathBuf>Explicit file path (overrides XDG path derivation).
Only used when target includes KeyStoreTarget::File.
force: boolOverwrite existing key if present.
Trait Implementations§
Source§impl Clone for KeyGenOptions
impl Clone for KeyGenOptions
Source§fn clone(&self) -> KeyGenOptions
fn clone(&self) -> KeyGenOptions
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 moreAuto Trait Implementations§
impl Freeze for KeyGenOptions
impl RefUnwindSafe for KeyGenOptions
impl Send for KeyGenOptions
impl Sync for KeyGenOptions
impl Unpin for KeyGenOptions
impl UnsafeUnpin for KeyGenOptions
impl UnwindSafe for KeyGenOptions
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