MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / is_empty

Method is_empty

crates/cargo-lambda-metadata/src/cargo/deploy.rs:403–416  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

401impl FunctionDeployConfig {
402 #[allow(dead_code)]
403 fn is_empty(&self) -> bool {
404 self.runtime.is_none()
405 && self.memory.is_none()
406 && self.timeout.is_none()
407 && self.env_options.is_none()
408 && self.tracing.is_none()
409 && self.role.is_none()
410 && self.vpc.is_none()
411 && self.description.is_none()
412 && self.log_retention.is_none()
413 && self.layer.is_none()
414 && !self.disable_function_url
415 && !self.enable_function_url
416 }
417
418 pub fn runtime(&self) -> String {
419 self.runtime.clone().unwrap_or_else(default_runtime)

Callers 6

lambda_tagsMethod · 0.45
s3_tagsMethod · 0.45
iam_tagsMethod · 0.45
lambda_environmentMethod · 0.45
count_fieldsMethod · 0.45
serialize_fieldsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected