pub struct PassphraseConfig {
pub cache: PassphraseCachePolicy,
pub duration: Option<String>,
pub biometric: bool,
}Expand description
Passphrase section of ~/.auths/config.toml.
Fields§
§cache: PassphraseCachePolicyCaching policy.
duration: Option<String>Duration string (e.g. "7d", "24h", "30m"). Only used when cache = "duration".
biometric: boolUse Touch ID (biometric) to protect cached passphrases on macOS.
Defaults to true on macOS, ignored on other platforms.
Trait Implementations§
Source§impl Clone for PassphraseConfig
impl Clone for PassphraseConfig
Source§fn clone(&self) -> PassphraseConfig
fn clone(&self) -> PassphraseConfig
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 PassphraseConfig
impl Debug for PassphraseConfig
Source§impl Default for PassphraseConfig
impl Default for PassphraseConfig
Source§impl<'de> Deserialize<'de> for PassphraseConfig
impl<'de> Deserialize<'de> for PassphraseConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PassphraseConfig
impl RefUnwindSafe for PassphraseConfig
impl Send for PassphraseConfig
impl Sync for PassphraseConfig
impl Unpin for PassphraseConfig
impl UnsafeUnpin for PassphraseConfig
impl UnwindSafe for PassphraseConfig
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