What is Nostr?
Arch :arch: /
npub1a5p…hf04
2024-07-04 15:01:25

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
Author Public Key
npub1a5p0chlpdrxh0e4y4n6mep4e420p727yen6uex0j3xuzmz458dqs3phf04