Struct digitalocean::prelude::FloatingIp
source · pub struct FloatingIp { /* private fields */ }
Expand description
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.
Implementations§
source§impl FloatingIp
impl FloatingIp
source§impl FloatingIp
impl FloatingIp
sourcepub fn list() -> FloatingIpRequest<List, Vec<FloatingIp>>
pub fn list() -> FloatingIpRequest<List, Vec<FloatingIp>>
sourcepub fn for_droplet(id: usize) -> FloatingIpRequest<Create, FloatingIp>
pub fn for_droplet(id: usize) -> FloatingIpRequest<Create, FloatingIp>
sourcepub fn for_region<S>(id: S) -> FloatingIpRequest<Create, FloatingIp>where
S: AsRef<str> + Display + Serialize,
pub fn for_region<S>(id: S) -> FloatingIpRequest<Create, FloatingIp>where
S: AsRef<str> + Display + Serialize,
sourcepub fn get<I>(id: I) -> FloatingIpRequest<Get, FloatingIp>where
I: Into<IpAddr>,
pub fn get<I>(id: I) -> FloatingIpRequest<Get, FloatingIp>where
I: Into<IpAddr>,
Trait Implementations§
source§impl Clone for FloatingIp
impl Clone for FloatingIp
source§fn clone(&self) -> FloatingIp
fn clone(&self) -> FloatingIp
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 moresource§impl Debug for FloatingIp
impl Debug for FloatingIp
source§impl<'de> Deserialize<'de> for FloatingIp
impl<'de> Deserialize<'de> for FloatingIp
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more