]> git.proxmox.com Git - pve-installer.git/commit
tui: refactor `NetworkOptions` to have a `defaults_from()` function
authorChristoph Heiss <c.heiss@proxmox.com>
Wed, 25 Oct 2023 08:56:22 +0000 (10:56 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 25 Oct 2023 17:03:13 +0000 (19:03 +0200)
commit2f0b4f7c9b8aea29567c0ea5f94f7fc641f5e265
tree23ea4a0744918d2c77141f164d6818aaf4793f7a
parent9f73c54b870dda80104b80eca099e377e6b7b6e3
tui: refactor `NetworkOptions` to have a `defaults_from()` function

This aligns it with the other constructors for options struct by
introducing a `::defaults_from()` function.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
proxmox-tui-installer/src/main.rs
proxmox-tui-installer/src/options.rs
proxmox-tui-installer/src/setup.rs