pub struct ExternalCmd {
pub command: String,
}Expand description
External command AuthHelper.
Invoke external command to obtain a secret.
Fields§
§command: StringExternal command
Implementations§
Trait Implementations§
Source§impl AuthHelper for ExternalCmd
impl AuthHelper for ExternalCmd
Source§fn clone_box(&self) -> Box<dyn AuthHelper>
fn clone_box(&self) -> Box<dyn AuthHelper>
Clone this helper into a boxed trait object.
Source§fn get<'life0, 'async_trait>(
&'life0 self,
key: String,
connection_name: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<String, AuthHelperError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get<'life0, 'async_trait>(
&'life0 self,
key: String,
connection_name: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<String, AuthHelperError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Interactive query to get the regular not sensitive authentication data (i.e. username,
project name, …)
Source§fn get_secret<'life0, 'async_trait>(
&'life0 self,
key: String,
connection_name: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<SecretString, AuthHelperError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_secret<'life0, 'async_trait>(
&'life0 self,
key: String,
connection_name: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<SecretString, AuthHelperError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Interactive query to get the sensitive data (i.e. password or token)
Source§impl Clone for ExternalCmd
impl Clone for ExternalCmd
Source§fn clone(&self) -> ExternalCmd
fn clone(&self) -> ExternalCmd
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 moreAuto Trait Implementations§
impl Freeze for ExternalCmd
impl RefUnwindSafe for ExternalCmd
impl Send for ExternalCmd
impl Sync for ExternalCmd
impl Unpin for ExternalCmd
impl UnsafeUnpin for ExternalCmd
impl UnwindSafe for ExternalCmd
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