pub struct OnePasswordLoader { /* private fields */ }Expand description
1Password CLI implementation of SecretLoader
Implementations§
Source§impl OnePasswordLoader
impl OnePasswordLoader
Sourcepub async fn check_cli_installed(&self) -> bool
pub async fn check_cli_installed(&self) -> bool
Check if 1Password CLI is installed
Sourcepub async fn check_authenticated(&self) -> bool
pub async fn check_authenticated(&self) -> bool
Check if authenticated with 1Password CLI
Sourcepub fn parse_reference(
&self,
reference: &str,
) -> OnePasswordResult<OnePasswordRef>
pub fn parse_reference( &self, reference: &str, ) -> OnePasswordResult<OnePasswordRef>
Parse a 1Password reference into its components
Trait Implementations§
Source§impl Clone for OnePasswordLoader
impl Clone for OnePasswordLoader
Source§fn clone(&self) -> OnePasswordLoader
fn clone(&self) -> OnePasswordLoader
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 OnePasswordLoader
impl Debug for OnePasswordLoader
Source§impl Default for OnePasswordLoader
impl Default for OnePasswordLoader
Source§impl SecretLoader for OnePasswordLoader
impl SecretLoader for OnePasswordLoader
Source§fn resolve_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_secret<'life0, 'life1, 'async_trait>(
&'life0 self,
reference: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolve a single secret reference to its actual value
Source§fn process_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn process_config<'life0, 'life1, 'async_trait>(
&'life0 self,
config: &'life1 str,
) -> Pin<Box<dyn Future<Output = OnePasswordResult<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Process a configuration string, resolving all 1Password references
Auto Trait Implementations§
impl Freeze for OnePasswordLoader
impl RefUnwindSafe for OnePasswordLoader
impl Send for OnePasswordLoader
impl Sync for OnePasswordLoader
impl Unpin for OnePasswordLoader
impl UnwindSafe for OnePasswordLoader
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