[−][src]Struct openstack::network::NewPort
A request to create a port
Implementations
impl NewPort
[src]
pub fn create(self) -> Result<Port>
[src]
Request creation of the port.
pub fn set_admin_state_up(&mut self, value: bool)
[src]
Set administrative status for the port.
pub fn with_admin_state_up(self, value: bool) -> Self
[src]
Set administrative status for the port.
pub fn add_allowed_address_pair(&mut self, value: AllowedAddressPair)
[src]
Set allowed addresses for the port.
pub fn allowed_address_pairs(&mut self) -> &mut Vec<AllowedAddressPair>
[src]
Set allowed addresses for the port.
pub fn with_allowed_address_pair(self, value: AllowedAddressPair) -> Self
[src]
Set allowed addresses for the port.
pub fn set_description<S: Into<String>>(&mut self, value: S)
[src]
Set description of the port.
pub fn with_description<S: Into<String>>(self, value: S) -> Self
[src]
Set description of the port.
pub fn set_device_id<S: Into<String>>(&mut self, value: S)
[src]
Set device ID of the port.
pub fn with_device_id<S: Into<String>>(self, value: S) -> Self
[src]
Set device ID of the port.
pub fn set_device_owner<S: Into<String>>(&mut self, value: S)
[src]
Set device owner of the port.
pub fn with_device_owner<S: Into<String>>(self, value: S) -> Self
[src]
Set device owner of the port.
pub fn set_dns_domain<S: Into<String>>(&mut self, value: S)
[src]
Set DNS domain for the port.
pub fn with_dns_domain<S: Into<String>>(self, value: S) -> Self
[src]
Set DNS domain for the port.
pub fn set_dns_name<S: Into<String>>(&mut self, value: S)
[src]
Set DNS name for the port.
pub fn with_dns_name<S: Into<String>>(self, value: S) -> Self
[src]
Set DNS name for the port.
pub fn extra_dhcp_opts(&mut self) -> &mut Vec<PortExtraDhcpOption>
[src]
Extra DHCP options to configure on the port.
pub fn set_extra_dhcp_opts(&mut self, value: Vec<PortExtraDhcpOption>)
[src]
Set extra DHCP options to configure on the port.
pub fn with_extra_dhcp_opts(self, value: Vec<PortExtraDhcpOption>) -> Self
[src]
Set extra DHCP options to configure on the port.
pub fn add_fixed_ip(&mut self, request: PortIpRequest)
[src]
Add a new fixed IP to the request.
pub fn with_fixed_ip(self, request: PortIpRequest) -> Self
[src]
Add a new fixed IP to the request.
pub fn set_mac_address(&mut self, value: MacAddress)
[src]
Set MAC address for the port (generated otherwise).
pub fn with_mac_address(self, value: MacAddress) -> Self
[src]
Set MAC address for the port (generated otherwise).
pub fn set_name<S: Into<String>>(&mut self, value: S)
[src]
Set a name for the port.
pub fn with_name<S: Into<String>>(self, value: S) -> Self
[src]
Set a name for the port.
pub fn add_security_group<S: Into<SecurityGroupRef>>(&mut self, value: S)
[src]
Set security groups for the port.
pub fn security_groups(&mut self) -> &mut Vec<SecurityGroupRef>
[src]
Set security groups for the port.
pub fn with_security_group<S: Into<SecurityGroupRef>>(self, value: S) -> Self
[src]
Set security groups for the port.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for NewPort
impl !Send for NewPort
impl !Sync for NewPort
impl Unpin for NewPort
impl !UnwindSafe for NewPort
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,