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
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more