Struct digitalocean::api::FloatingIp
[−]
pub struct FloatingIp { /* fields omitted */ }
Floating IP objects represent a publicly-accessible static IP addresses that can be mapped to one of your Droplets. They can be used to create highly available setups or other configurations requiring movable addresses.
Floating IPs are bound to a specific region.
Methods
impl FloatingIp
fn ip(&self) -> &IpAddr
The public IP address of the Floating IP. It also serves as its identifier.
fn region(&self) -> &Region
The region that the Floating IP is reserved to. When you query a Floating IP, the entire region object will be returned.
fn droplet(&self) -> &Option<Droplet>
The Droplet that the Floating IP has been assigned to. When you query a Floating IP, if it is assigned to a Droplet, the entire Droplet object will be returned. If it is not assigned, the value will be null.
impl FloatingIp
[src]
fn list() -> FloatingIpRequest<List, Vec<FloatingIp>>
fn for_droplet(id: usize) -> FloatingIpRequest<Create, FloatingIp>
fn for_region<S>(id: S) -> FloatingIpRequest<Create, FloatingIp> where
S: AsRef<str> + Display + Serialize,
S: AsRef<str> + Display + Serialize,
fn get<I>(id: I) -> FloatingIpRequest<Get, FloatingIp> where
I: Into<IpAddr>,
I: Into<IpAddr>,
fn delete<I>(id: I) -> FloatingIpRequest<Delete, ()> where
I: Into<IpAddr>,
I: Into<IpAddr>,
Trait Implementations
impl Debug for FloatingIp
[src]
impl Clone for FloatingIp
[src]
fn clone(&self) -> FloatingIp
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more