Struct cargo_lambda_metadata::env::EnvOptions
source · pub struct EnvOptions {
pub env_var: Option<Vec<String>>,
pub env_vars: Option<Vec<String>>,
pub env_file: Option<PathBuf>,
}Fields§
§env_var: Option<Vec<String>>Option to add one or many environment variables, allows multiple repetitions (–env-var KEY=VALUE –env-var OTHER=NEW-VALUE) This option overrides any values set with the –env-vars flag.
env_vars: Option<Vec<String>>Command separated list of environment variables (–env-vars KEY=VALUE,OTHER=NEW-VALUE) This option overrides any values set with the –env-var flag that match the same key.
env_file: Option<PathBuf>Read environment variables from a file. Variables are separated by new lines in KEY=VALUE format.
Implementations§
source§impl EnvOptions
impl EnvOptions
pub fn flag_vars(&self) -> Option<Vec<String>>
pub fn lambda_environment(&self) -> Result<Environment>
Trait Implementations§
source§impl Args for EnvOptions
impl Args for EnvOptions
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Clone for EnvOptions
impl Clone for EnvOptions
source§fn clone(&self) -> EnvOptions
fn clone(&self) -> EnvOptions
Returns a copy 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 moresource§impl Debug for EnvOptions
impl Debug for EnvOptions
source§impl Default for EnvOptions
impl Default for EnvOptions
source§fn default() -> EnvOptions
fn default() -> EnvOptions
Returns the “default value” for a type. Read more
source§impl FromArgMatches for EnvOptions
impl FromArgMatches for EnvOptions
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(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches to self.