pub enum PassphraseCachePolicy {
Always,
Session,
Duration,
Never,
}Expand description
Passphrase caching policy.
Controls how auths-sign caches the passphrase between invocations:
always: Store in OS keychain permanently until explicitly cleared.session: Rely on the in-memory agent (Tier 1/2) — prompt once per agent lifetime.duration: Store in OS keychain with a TTL (seePassphraseConfig::duration).never: Always prompt interactively.
Variants§
Always
Store passphrase in OS keychain permanently.
Session
Cache passphrase in the running agent’s memory — prompt once per agent lifetime.
Duration
Store passphrase in OS keychain with a configurable TTL (default).
Chosen as the default so unconfigured users get macOS Keychain +
Touch ID caching out of the box, matching the UX of other
keychain-backed developer tools. impl Default for PassphraseConfig
supplies the complementary defaults (duration = "1h",
biometric = true on macOS). Users who explicitly opt into
Session via ~/.auths/config.toml retain the previous
prompt-each-time behavior.
Never
Never cache — always prompt.
Trait Implementations§
Source§impl Clone for PassphraseCachePolicy
impl Clone for PassphraseCachePolicy
Source§fn clone(&self) -> PassphraseCachePolicy
fn clone(&self) -> PassphraseCachePolicy
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 PassphraseCachePolicy
impl Debug for PassphraseCachePolicy
Source§impl Default for PassphraseCachePolicy
impl Default for PassphraseCachePolicy
Source§fn default() -> PassphraseCachePolicy
fn default() -> PassphraseCachePolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PassphraseCachePolicy
impl<'de> Deserialize<'de> for PassphraseCachePolicy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PassphraseCachePolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PassphraseCachePolicy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PassphraseCachePolicy
Source§impl PartialEq for PassphraseCachePolicy
impl PartialEq for PassphraseCachePolicy
Source§fn eq(&self, other: &PassphraseCachePolicy) -> bool
fn eq(&self, other: &PassphraseCachePolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PassphraseCachePolicy
impl Serialize for PassphraseCachePolicy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PassphraseCachePolicy
Auto Trait Implementations§
impl Freeze for PassphraseCachePolicy
impl RefUnwindSafe for PassphraseCachePolicy
impl Send for PassphraseCachePolicy
impl Sync for PassphraseCachePolicy
impl Unpin for PassphraseCachePolicy
impl UnsafeUnpin for PassphraseCachePolicy
impl UnwindSafe for PassphraseCachePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.