pub struct ProductionSecretResolver { /* private fields */ }Expand description
Resolves an approved platform-native credential reference or the existing owner-selected command helper reference. Keychain references fail closed on platforms other than macOS.
Implementations§
Source§impl ProductionSecretResolver
impl ProductionSecretResolver
pub fn supports_reference(secret_ref: &str) -> bool
Sourcepub fn validate_reference(secret_ref: &str) -> Result<(), SecretResolutionError>
pub fn validate_reference(secret_ref: &str) -> Result<(), SecretResolutionError>
Validates the reference form without reading a credential. Command references retain their existing filesystem ownership checks.
Trait Implementations§
Source§impl Clone for ProductionSecretResolver
impl Clone for ProductionSecretResolver
impl Copy for ProductionSecretResolver
Source§impl Debug for ProductionSecretResolver
impl Debug for ProductionSecretResolver
Source§impl Default for ProductionSecretResolver
impl Default for ProductionSecretResolver
Source§impl SecretResolver for ProductionSecretResolver
impl SecretResolver for ProductionSecretResolver
fn resolve( &self, secret_ref: &str, ) -> Result<ResolvedSecret, SecretResolutionError>
Auto Trait Implementations§
impl Freeze for ProductionSecretResolver
impl RefUnwindSafe for ProductionSecretResolver
impl Send for ProductionSecretResolver
impl Sync for ProductionSecretResolver
impl Unpin for ProductionSecretResolver
impl UnsafeUnpin for ProductionSecretResolver
impl UnwindSafe for ProductionSecretResolver
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