Struct digitalocean::api::Region
source · pub struct Region { /* private fields */ }
Expand description
A region in DigitalOcean represents a datacenter where Droplets can be deployed and images can be transferred.
Each region represents a specific datacenter in a geographic location. Some geographical locations may have multiple “regions” available. This means that there are multiple datacenters available within that area.
Implementations§
source§impl Region
impl Region
sourcepub fn name(&self) -> &String
pub fn name(&self) -> &String
A human-readable string that is used as a unique identifier for each region.
sourcepub fn slug(&self) -> &String
pub fn slug(&self) -> &String
The display name of the region. This will be a full name that is used in the control panel and other interfaces.
sourcepub fn sizes(&self) -> &Vec<String>
pub fn sizes(&self) -> &Vec<String>
This attribute is set to an array which contains the identifying slugs for the sizes available in this region.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
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