pub struct NewPort { /* private fields */ }
Expand description
A request to create a port
Implementations
sourceimpl NewPort
impl NewPort
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 port.
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 port.
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 port.
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 port.
sourcepub fn set_device_id<S: Into<String>>(&mut self, value: S)
pub fn set_device_id<S: Into<String>>(&mut self, value: S)
Set device ID of the port.
sourcepub fn with_device_id<S: Into<String>>(self, value: S) -> Self
pub fn with_device_id<S: Into<String>>(self, value: S) -> Self
Set device ID of the port.
sourcepub fn set_device_owner<S: Into<String>>(&mut self, value: S)
pub fn set_device_owner<S: Into<String>>(&mut self, value: S)
Set device owner of the port.
sourcepub fn with_device_owner<S: Into<String>>(self, value: S) -> Self
pub fn with_device_owner<S: Into<String>>(self, value: S) -> Self
Set device owner of the port.
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 port.
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 port.
sourcepub fn set_dns_name<S: Into<String>>(&mut self, value: S)
pub fn set_dns_name<S: Into<String>>(&mut self, value: S)
Set DNS name for the port.
sourcepub fn with_dns_name<S: Into<String>>(self, value: S) -> Self
pub fn with_dns_name<S: Into<String>>(self, value: S) -> Self
Set DNS name for the port.
sourcepub fn extra_dhcp_opts(&mut self) -> &mut Vec<PortExtraDhcpOption>
pub fn extra_dhcp_opts(&mut self) -> &mut Vec<PortExtraDhcpOption>
Extra DHCP options to configure on the port.
sourcepub fn set_extra_dhcp_opts(&mut self, value: Vec<PortExtraDhcpOption>)
pub fn set_extra_dhcp_opts(&mut self, value: Vec<PortExtraDhcpOption>)
Set extra DHCP options to configure on the port.
sourcepub fn with_extra_dhcp_opts(self, value: Vec<PortExtraDhcpOption>) -> Self
pub fn with_extra_dhcp_opts(self, value: Vec<PortExtraDhcpOption>) -> Self
Set extra DHCP options to configure on the port.
sourcepub fn add_fixed_ip(&mut self, request: PortIpRequest)
pub fn add_fixed_ip(&mut self, request: PortIpRequest)
Add a new fixed IP to the request.
sourcepub fn with_fixed_ip(self, request: PortIpRequest) -> Self
pub fn with_fixed_ip(self, request: PortIpRequest) -> Self
Add a new fixed IP to the request.
sourcepub fn set_mac_address(&mut self, value: MacAddress)
pub fn set_mac_address(&mut self, value: MacAddress)
Set MAC address for the port (generated otherwise).
sourcepub fn with_mac_address(self, value: MacAddress) -> Self
pub fn with_mac_address(self, value: MacAddress) -> Self
Set MAC address for the port (generated otherwise).
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
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