pub struct EnvelopeArgs {
pub envelope: Option<Envelope>,
pub envelope_aad: Option<Aad>,
pub envelope_aad_encoding: Option<Encoding>,
}Fields§
§envelope: Option<Envelope>The URI for the crypto key from a KMS to use as envelope encryption if the keyring is to be encrypted.
The value should be in the form <gcp|aws|azure|vault>://
- \033[1mGCP\033[0m: gcp://projects/
/locations/ /keyRings/ /cryptoKeys/ - AWS: aws://arn:aws:kms:
: :key/ - JSON: json://
envelope_aad: Option<Aad>Additional authenticated data(AAD), if any, used to authenticate the keyring.
The value can either be a URI in the form
<gcp|aws|azure|vault>://
For URIs, the path should be the secret’s URI on a supported secret manager. For example, a path of: gcp://projects/my-project/secrets/my-secret/versions/1 would use the first version of the secret “my-secret” on GCP.
For both secrets hosted on a secret manager and strings, the the
envelope-aad-encoding determines if and how the value is decoded.
envelope_aad_encoding: Option<Encoding>The encoding of the envelope AAD value, if any. If not specified, the value is treated as a string.
Implementations§
Trait Implementations§
Source§impl Args for EnvelopeArgs
impl Args for EnvelopeArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for EnvelopeArgs
impl CommandFactory for EnvelopeArgs
Source§impl Debug for EnvelopeArgs
impl Debug for EnvelopeArgs
Source§impl Default for EnvelopeArgs
impl Default for EnvelopeArgs
Source§fn default() -> EnvelopeArgs
fn default() -> EnvelopeArgs
Source§impl FromArgMatches for EnvelopeArgs
impl FromArgMatches for EnvelopeArgs
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>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Parser for EnvelopeArgs
impl Parser for EnvelopeArgs
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for EnvelopeArgs
impl !RefUnwindSafe for EnvelopeArgs
impl Send for EnvelopeArgs
impl Sync for EnvelopeArgs
impl Unpin for EnvelopeArgs
impl !UnwindSafe for EnvelopeArgs
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
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>
T in a tonic::Request