podman_rest_client/v5/models/network_connect_options.rs
1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// NetworkConnectOptions describes options for connecting
4/// a container to a network
5pub struct NetworkConnectOptions {
6 /// Aliases contains a list of names which the dns server should resolve
7 /// to this container. Should only be set when DNSEnabled is true on the Network.
8 /// If aliases are set but there is no dns support for this network the
9 /// network interface implementation should ignore this and NOT error.
10 /// Optional.
11 pub aliases: Option<Vec<String>>,
12 pub container: Option<String>,
13 /// InterfaceName for this container. Required in the backend.
14 /// Optional in the frontend. Will be filled with ethX (where X is a integer) when empty.
15 pub interface_name: Option<String>,
16 /// StaticIPs for this container. Optional.
17 pub static_ips: Option<Vec<String>>,
18 /// StaticMac for this container. Optional.
19 pub static_mac: Option<String>,
20}