Struct openstack::network::NewNetwork
source · pub struct NewNetwork { /* private fields */ }
Expand description
A request to create a network
Implementations
sourceimpl 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.
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
sourceimpl Clone for NewNetwork
impl Clone for NewNetwork
sourcefn clone(&self) -> NewNetwork
fn clone(&self) -> NewNetwork
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for NewNetwork
impl !Send for NewNetwork
impl !Sync for NewNetwork
impl Unpin for NewNetwork
impl !UnwindSafe for NewNetwork
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more