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

A custom image is an image with an user-supplied raw image. The body must contain a url attribute pointing to a Linux virtual machine image to be imported into DigitalOcean. The image must be in the raw, qcow2, vhdx, vdi, or vmdk format. It may be compressed using gzip or bzip2 and must be smaller than 100 GB after being decompressed.

Digital Ocean Documentation.

Implementations§

A unique number that can be used to identify and reference a specific image.

The display name that has been given to an image. This is what is shown in the control panel and is generally a descriptive title for the image in question.

The kind of image, describing the duration of how long the image is stored. This is either “snapshot” or “backup”.

Note: Since type is a keyword in Rust kind is used instead.

This attribute describes the base distribution used for this image.

This attribute is an array of the regions that the image is available in. The regions are represented by their identifying slug values.

Tags to quickly find an image or to group multiple images under a common name

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

A brief description about the image

The status of the image

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.