Struct openstack::network::NewFloatingIp
source · pub struct NewFloatingIp { /* private fields */ }
Expand description
A request to create a floating IP.
Implementations§
source§impl NewFloatingIp
impl NewFloatingIp
sourcepub async fn create(self) -> Result<FloatingIp>
pub async fn create(self) -> Result<FloatingIp>
Request creation of 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 floating IP.
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 floating IP.
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 floating IP.
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 floating IP.
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 floating IP.
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 floating IP.
sourcepub fn set_fixed_ip_address(&mut self, value: IpAddr)
pub fn set_fixed_ip_address(&mut self, value: IpAddr)
Set the requested fixed IP address (required if the port has several).
sourcepub fn with_fixed_ip_address(self, value: IpAddr) -> Self
pub fn with_fixed_ip_address(self, value: IpAddr) -> Self
Set the requested fixed IP address (required if the port has several).
sourcepub fn set_floating_ip_address(&mut self, value: IpAddr)
pub fn set_floating_ip_address(&mut self, value: IpAddr)
Set the requested floating IP address.
sourcepub fn with_floating_ip_address(self, value: IpAddr) -> Self
pub fn with_floating_ip_address(self, value: IpAddr) -> Self
Set the requested floating IP address.
sourcepub fn set_port<P>(&mut self, port: P)where
P: Into<PortRef>,
pub fn set_port<P>(&mut self, port: P)where P: Into<PortRef>,
Set the port to associate with the new IP.
sourcepub fn with_port<P>(self, port: P) -> NewFloatingIpwhere
P: Into<PortRef>,
pub fn with_port<P>(self, port: P) -> NewFloatingIpwhere P: Into<PortRef>,
Set the port to associate with the new IP.
sourcepub fn set_subnet<P>(&mut self, subnet: P)where
P: Into<SubnetRef>,
pub fn set_subnet<P>(&mut self, subnet: P)where P: Into<SubnetRef>,
Set the subnet to create the IP address from.
sourcepub fn with_subnet<P>(self, subnet: P) -> NewFloatingIpwhere
P: Into<SubnetRef>,
pub fn with_subnet<P>(self, subnet: P) -> NewFloatingIpwhere P: Into<SubnetRef>,
Set the subnet to create the IP address from.
Trait Implementations§
source§impl Clone for NewFloatingIp
impl Clone for NewFloatingIp
source§fn clone(&self) -> NewFloatingIp
fn clone(&self) -> NewFloatingIp
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