[][src]Struct openstack::network::FloatingIp

pub struct FloatingIp { /* fields omitted */ }

Structure representing a single floating IP.

Methods

impl FloatingIp[src]

pub fn created_at(&self) -> Option<DateTime<FixedOffset>>[src]

Creation data and time (if available).

pub fn description(&self) -> &Option<String>[src]

Floating IP description.

pub fn set_description<S: Into<String>>(&mut self, value: S)[src]

Update the description.

pub fn with_description<S: Into<String>>(self, value: S) -> Self[src]

Update the description.

pub fn dns_domain(&self) -> &Option<String>[src]

DNS domain for the floating IP (if available).

pub fn dns_name(&self) -> &Option<String>[src]

DNS domain for the floating IP (if available).

pub fn fixed_ip_address(&self) -> Option<IpAddr>[src]

IP address of the port associated with the IP (if any).

pub fn set_fixed_ip_address(&mut self, value: IpAddr)[src]

Update which fixed IP address is associated with the floating IP.

pub fn with_fixed_ip_address(self, value: IpAddr) -> Self[src]

Update which fixed IP address is associated with the floating IP.

pub fn floating_ip_address(&self) -> IpAddr[src]

Floating IP address

pub fn floating_network_id(&self) -> &String[src]

ID of the network this floating IP belongs to.

pub fn floating_network(&self) -> Result<Network>[src]

Get network this floating IP belongs to.

pub fn id(&self) -> &String[src]

Unique ID.

pub fn is_associated(&self) -> bool[src]

Whether the floating IP is associated.

pub fn port_forwardings(&self) -> &Vec<PortForwarding>[src]

List of port forwardings (if any).

pub fn port_id(&self) -> &Option<String>[src]

ID of the port this IP is attached to (if any).

pub fn router_id(&self) -> &Option<String>[src]

ID of the router of this floating IP.

pub fn port(&self) -> Result<Port>[src]

Fetch the port this IP is associated with.

Fails with ResourceNotFound if the floating IP is not associated.

pub fn status(&self) -> FloatingIpStatus[src]

Status of the floating IP.

pub fn updated_at(&self) -> Option<DateTime<FixedOffset>>[src]

Last update data and time (if available).

pub fn associate<P>(
    &mut self,
    port: P,
    fixed_ip_address: Option<IpAddr>
) -> Result<()> where
    P: Into<PortRef>, 
[src]

Associate this floating IP with a port.

Optionally provide a fixed IP address to associate with, in case the port has several fixed IP addresses.

Warning

Any changes to fixed_ip_address are reset on this call.

pub fn dissociate(&mut self) -> Result<()>[src]

Dissociate this floating IP from a port.

Warning

Any changes to fixed_ip_address are reset on this call.

pub fn delete(self) -> Result<DeletionWaiter<FloatingIp>>[src]

Delete the floating IP.

pub fn save(&mut self) -> Result<()>[src]

Save the changes to the floating IP.

Trait Implementations

impl Refresh for FloatingIp[src]

fn refresh(&mut self) -> Result<()>[src]

Refresh the floating_ip.

impl Clone for FloatingIp[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for FloatingIp[src]

Auto Trait Implementations

impl !Send for FloatingIp

impl !Sync for FloatingIp

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T