Struct digitalocean::api::Size []

pub struct Size { /* fields omitted */ }

The sizes objects represent different packages of hardware resources that can be used for Droplets. When a Droplet is created, a size must be selected so that the correct resources can be allocated.

Each size represents a plan that bundles together specific sets of resources. This includes the amount of RAM, the number of virtual CPUs, disk space, and transfer. The size object also includes the pricing details and the regions that the size is available in.

Digital Ocean Documentation.

Methods

impl Size

A human-readable string that is used to uniquely identify each size.

This is a boolean value that represents whether new Droplets can be created with this size.

The amount of transfer bandwidth that is available for Droplets created in this size. This only counts traffic on the public interface. The value is given in terabytes.

This attribute describes the monthly cost of this Droplet size if the Droplet is kept for an entire month. The value is measured in US dollars.

This describes the price of the Droplet size as measured hourly. The value is measured in US dollars.

The amount of RAM allocated to Droplets created of this size. The value is represented in megabytes.

The number of virtual CPUs allocated to Droplets of this size.

The amount of disk space set aside for Droplets of this size. The value is represented in gigabytes.

An array containing the region slugs where this size is available for Droplet creates.

impl Size
[src]

Trait Implementations

impl Debug for Size
[src]

Formats the value using the given formatter.

impl Clone for Size
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more