MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / lambda_environment

Method lambda_environment

crates/cargo-lambda-metadata/src/env.rs:29–34  ·  view source on GitHub ↗
(
        &self,
        base: &HashMap<String, String>,
    )

Source from the content-addressed store, hash-verified

27
28impl EnvOptions {
29 pub fn lambda_environment(
30 &self,
31 base: &HashMap<String, String>,
32 ) -> Result<Environment, MetadataError> {
33 lambda_environment(Some(base), &self.env_file, self.env_var.as_ref())
34 }
35
36 pub fn count_fields(&self) -> usize {
37 self.env_var.is_some() as usize + self.env_file.is_some() as usize

Callers 6

test_env_with_arraysFunction · 0.45
reload_envFunction · 0.45
runFunction · 0.45
fmtMethod · 0.45
create_functionFunction · 0.45
update_function_configFunction · 0.45

Calls 1

lambda_environmentFunction · 0.85

Tested by 1

test_env_with_arraysFunction · 0.36