pub struct SecretHelperConfig {
pub command: String,
pub args: Vec<String>,
}Expand description
Configuration for a secret helper command
Fields§
§command: StringThe command to execute
args: Vec<String>Arguments to pass before the DID
Implementations§
Source§impl SecretHelperConfig
impl SecretHelperConfig
Sourcepub fn from_command_string(s: &str) -> Result<Self>
pub fn from_command_string(s: &str) -> Result<Self>
Parse a command string into a SecretHelperConfig
Splits on whitespace. The first token is the command, the rest are arguments. The DID will be appended as the final argument at invocation time.
Trait Implementations§
Source§impl Clone for SecretHelperConfig
impl Clone for SecretHelperConfig
Source§fn clone(&self) -> SecretHelperConfig
fn clone(&self) -> SecretHelperConfig
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 moreAuto Trait Implementations§
impl Freeze for SecretHelperConfig
impl RefUnwindSafe for SecretHelperConfig
impl Send for SecretHelperConfig
impl Sync for SecretHelperConfig
impl Unpin for SecretHelperConfig
impl UnsafeUnpin for SecretHelperConfig
impl UnwindSafe for SecretHelperConfig
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