Struct openstack::network::NewNetwork
source · pub struct NewNetwork { /* private fields */ }
Expand description
A request to create a network
Implementations§
source§impl NewNetwork
impl NewNetwork
sourcepub fn set_admin_state_up(&mut self, value: bool)
pub fn set_admin_state_up(&mut self, value: bool)
Set administrative status for the network.
sourcepub fn with_admin_state_up(self, value: bool) -> Self
pub fn with_admin_state_up(self, value: bool) -> Self
Set administrative status for the network.
sourcepub fn set_default(&mut self, value: bool)
pub fn set_default(&mut self, value: bool)
Configure whether this network is default.
sourcepub fn with_default(self, value: bool) -> Self
pub fn with_default(self, value: bool) -> Self
Configure whether this network is default.
sourcepub fn set_description<S: Into<String>>(&mut self, value: S)
pub fn set_description<S: Into<String>>(&mut self, value: S)
Set description of the network.
sourcepub fn with_description<S: Into<String>>(self, value: S) -> Self
pub fn with_description<S: Into<String>>(self, value: S) -> Self
Set description of the network.
sourcepub fn set_dns_domain<S: Into<String>>(&mut self, value: S)
pub fn set_dns_domain<S: Into<String>>(&mut self, value: S)
Set DNS domain for the network.
sourcepub fn with_dns_domain<S: Into<String>>(self, value: S) -> Self
pub fn with_dns_domain<S: Into<String>>(self, value: S) -> Self
Set DNS domain for the network.
sourcepub fn set_external(&mut self, value: bool)
pub fn set_external(&mut self, value: bool)
Configure whether this network is external.
sourcepub fn with_external(self, value: bool) -> Self
pub fn with_external(self, value: bool) -> Self
Configure whether this network is external.
sourcepub fn set_port_security_enabled(&mut self, value: bool)
pub fn set_port_security_enabled(&mut self, value: bool)
Configure whether port security is enabled by default.
sourcepub fn with_port_security_enabled(self, value: bool) -> Self
pub fn with_port_security_enabled(self, value: bool) -> Self
Configure whether port security is enabled by default.
Configure whether the network is shared across all projects.
Configure whether the network is shared across all projects.
sourcepub fn set_vlan_transparent(&mut self, value: bool)
pub fn set_vlan_transparent(&mut self, value: bool)
Configure VLAN transparency mode of the network.
sourcepub fn with_vlan_transparent(self, value: bool) -> Self
pub fn with_vlan_transparent(self, value: bool) -> Self
Configure VLAN transparency mode of the network.
Trait Implementations§
source§impl Clone for NewNetwork
impl Clone for NewNetwork
source§fn clone(&self) -> NewNetwork
fn clone(&self) -> NewNetwork
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 more