pub struct Droplet { /* private fields */ }
Expand description

A Droplet is a DigitalOcean virtual machine. By sending requests to the Droplet endpoint, you can list, create, or delete Droplets.

Some of the attributes will have an object value. The region and image objects will all contain the standard attributes of their associated types. Find more information about each of these objects in their respective sections.

Digital Ocean Documentation.

Implementations§

A unique identifier for each Droplet instance. This is automatically generated upon Droplet creation.

The human-readable name set for the Droplet instance.

Memory of the Droplet in megabytes.

The number of virtual CPUs.

The size of the Droplet’s disk in gigabytes.

A boolean value indicating whether the Droplet has been locked, preventing actions by users.

A time value given in ISO8601 combined date and time format that represents when the Droplet was created.

A status string indicating the state of the Droplet instance. This may be “new”, “active”, “off”, or “archive”.

An array of backup IDs of any backups that have been taken of the Droplet instance. Droplet backups are enabled at the time of the instance creation.

An array of snapshot IDs of any snapshots created from the Droplet instance.

An array of features enabled on this Droplet.

The region that the Droplet instance is deployed in. When setting a region, the value should be the slug identifier for the region. When you query a Droplet, the entire region object will be returned.

The base image used to create the Droplet instance. When setting an image, the value is set to the image id or slug. When querying the Droplet, the entire image object will be returned.

The current size object describing the Droplet. When setting a size, the value is set to the size slug. When querying the Droplet, the entire size object will be returned. Note that the disk volume of a Droplet may not match the size’s disk due to Droplet resize actions. The disk attribute on the Droplet should always be referenced.

The unique slug identifier for the size of this Droplet.

The details of the network that are configured for the Droplet instance. This is an object that contains keys for IPv4 and IPv6. The value of each of these is an array that contains objects describing an individual IP resource allocated to the Droplet. These will define attributes like the IP address, netmask, and gateway of the specific network depending on the type of network it is.

The current kernel. This will initially be set to the kernel of the base image when the Droplet is created.

The details of the Droplet’s backups feature, if backups are configured for the Droplet. This object contains keys for the start and end times of the window during which the backup will start.

An array of Tags the Droplet has been tagged with.

A flat array including the unique identifier for each Block Storage volume attached to the Droplet.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.