pub enum Command {
New(New),
Inpsect(Inspect),
AddKey(AddKey),
PromoteKey(PromoteKey),
EnableKey(EnableKey),
DisableKey(DisableKey),
DeleteKey(DeleteKey),
SetKeyMetadata(SetKeyMetadata),
Migrate(Migrate),
CreatePublic(CreatePublic),
Encrypt(Encrypt),
Decrypt(Decrypt),
}
Variants§
New(New)
Creates a new keyring, optionally encrypting it using an envelope.
Inpsect(Inspect)
Displays information about keys within the keyring.
AddKey(AddKey)
Adds a new key to a keyring.
PromoteKey(PromoteKey)
Promotes a key to primary in a keyring.
EnableKey(EnableKey)
Enables a disabled key in a keyring.
DisableKey(DisableKey)
Disables a key in a keyring.
DeleteKey(DeleteKey)
Deletes a key from a keyring.
SetKeyMetadata(SetKeyMetadata)
Sets metadata of a key in a keyring.
Migrate(Migrate)
Migrates a keyring to a new envelope, changes the envelope’s AAD, or both.
CreatePublic(CreatePublic)
Generates a public JWKS from a private, asymmetric keyring.
Encrypt(Encrypt)
Encrypt a file or stdin using an AEAD keyring.
Decrypt(Decrypt)
Decrypt a file or stdin using an AEAD keyring.
Implementations§
Trait Implementations§
Source§impl From<CreatePublic> for Command
impl From<CreatePublic> for Command
Source§fn from(cmd: CreatePublic) -> Self
fn from(cmd: CreatePublic) -> Self
Converts to this type from the input type.
Source§impl From<DisableKey> for Command
impl From<DisableKey> for Command
Source§fn from(cmd: DisableKey) -> Self
fn from(cmd: DisableKey) -> Self
Converts to this type from the input type.
Source§impl From<PromoteKey> for Command
impl From<PromoteKey> for Command
Source§fn from(cmd: PromoteKey) -> Self
fn from(cmd: PromoteKey) -> Self
Converts to this type from the input type.
Source§impl From<SetKeyMetadata> for Command
impl From<SetKeyMetadata> for Command
Source§fn from(cmd: SetKeyMetadata) -> Self
fn from(cmd: SetKeyMetadata) -> Self
Converts to this type from the input type.
Source§impl FromArgMatches for Command
impl FromArgMatches for Command
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 Command
impl Subcommand for Command
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 Command
impl !RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl !UnwindSafe for Command
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request