Arch :arch: on Nostr: Thinking about shifting my design of infra-rs from struct based to function based for ...
Thinking about shifting my design of infra-rs from struct based to function based for more flexibility 🤔 So https://git.gmem.ca/arch/infra-rs/src/commit/472d7c923a2f2405bd9479c7b2c304aa17fe3f37/src/manifests/vaultwarden.rs#L11-L26 instead of passing structs, it would be something like
let containers = vec![Containers::new().port(80).image("alpine").port(443);
Deployment::new()
.containers(containers)
Or something
let containers = vec![Containers::new().port(80).image("alpine").port(443);
Deployment::new()
.containers(containers)
Or something