Struct digitalocean::api::Region
[−]
pub struct Region { /* fields omitted */ }
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.
Methods
impl Region
fn name(&self) -> &String
A human-readable string that is used as a unique identifier for each region.
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.
fn sizes(&self) -> &Vec<String>
This attribute is set to an array which contains the identifying slugs for the sizes available in this region.
fn available(&self) -> &bool
This is a boolean value that represents whether new Droplets can be created in this region.
fn features(&self) -> &Vec<String>
This attribute is set to an array which contains features available in this region
impl Region
[src]
fn list() -> RegionRequest<List, Vec<Region>>
Trait Implementations
impl Debug for Region
[src]
impl Clone for Region
[src]
fn clone(&self) -> Region
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