podman_rest_client/v5/models/
per_network_options.rs

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