[−][src]Struct openstack::network::FloatingIp
Structure representing a single floating IP.
Implementations
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]
&mut self,
port: P,
fixed_ip_address: Option<IpAddr>
) -> Result<()> where
P: Into<PortRef>,
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 Clone for FloatingIp
[src]
fn clone(&self) -> FloatingIp
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for FloatingIp
[src]
impl Refresh for FloatingIp
[src]
Auto Trait Implementations
impl !RefUnwindSafe for FloatingIp
impl !Send for FloatingIp
impl !Sync for FloatingIp
impl Unpin for FloatingIp
impl !UnwindSafe for FloatingIp
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>,