Struct openstack::network::ExternalGateway
source · #[non_exhaustive]pub struct ExternalGateway {
pub network_id: NetworkRef,
pub enable_snat: Option<bool>,
pub external_fixed_ips: Vec<FixedIp>,
}
Expand description
External gateway information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.network_id: NetworkRef
External network.
enable_snat: Option<bool>
Whether to enable source NAT.
external_fixed_ips: Vec<FixedIp>
A list of external fixed IPs.
Implementations§
source§impl ExternalGateway
impl ExternalGateway
sourcepub fn new<N: Into<NetworkRef>>(external_network: N) -> ExternalGateway
pub fn new<N: Into<NetworkRef>>(external_network: N) -> ExternalGateway
Create a new external gateway.
Trait Implementations§
source§impl Clone for ExternalGateway
impl Clone for ExternalGateway
source§fn clone(&self) -> ExternalGateway
fn clone(&self) -> ExternalGateway
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExternalGateway
impl Debug for ExternalGateway
source§impl<'de> Deserialize<'de> for ExternalGateway
impl<'de> Deserialize<'de> for ExternalGateway
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more