pub enum SecretAction {
Set {
key: String,
value: String,
description: Option<String>,
format: Option<SecretFormat>,
},
Get {
key: String,
},
List {},
Describe {
key: String,
description: Option<String>,
},
Remove {
key: String,
},
Revoke {
key: String,
target: Target,
},
}Variants§
Set
Set a secret value (with optional metadata)
Fields
§
format: Option<SecretFormat>Format hint: raw, multiline, base64, json (auto-detected if omitted)
Get
Get a secret value
List
List all secrets
Describe
Set or update a secret’s description
Remove
Remove from Local Vault ONLY (Use ‘prune’ for remote removal)
Revoke
Revoke a generated secret at the source AND locally
Trait Implementations§
Source§impl Debug for SecretAction
impl Debug for SecretAction
Source§impl FromArgMatches for SecretAction
impl FromArgMatches for SecretAction
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for SecretAction
impl Subcommand for SecretAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for SecretAction
impl RefUnwindSafe for SecretAction
impl Send for SecretAction
impl Sync for SecretAction
impl Unpin for SecretAction
impl UnwindSafe for SecretAction
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