[][src]Struct digitalocean::prelude::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.

Digital Ocean Documentation.

Implementations

impl Region[src]

pub fn name(&self) -> &String[src]

A human-readable string that is used as a unique identifier for each region.

pub fn slug(&self) -> &String[src]

The display name of the region. This will be a full name that is used in the control panel and other interfaces.

pub fn sizes(&self) -> &Vec<String>[src]

This attribute is set to an array which contains the identifying slugs for the sizes available in this region.

pub fn available(&self) -> &bool[src]

This is a boolean value that represents whether new Droplets can be created in this region.

pub fn features(&self) -> &Vec<String>[src]

This attribute is set to an array which contains features available in this region

impl Region[src]

Trait Implementations

impl Clone for Region[src]

impl Debug for Region[src]

impl<'de> Deserialize<'de> for Region[src]

impl Serialize for Region[src]

Auto Trait Implementations

impl RefUnwindSafe for Region

impl Send for Region

impl Sync for Region

impl Unpin for Region

impl UnwindSafe for Region

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err