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

Snapshots are saved instances of a Droplet or a volume, which is reflected in the resource_type attribute. In order to avoid problems with compressing filesystems, each defines a min_disk_size attribute which is the minimum size of the Droplet or volume disk when creating a new resource from the saved snapshot.

Digital Ocean Documentation.

Implementations§

The unique identifier for the snapshot.

A human-readable name for the snapshot.

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

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

A unique identifier for the resource that the action is associated with.

The type of resource that the action is associated with.

The minimum size in GB required for a volume or Droplet to use this snapshot.

The billable size of the snapshot in gigabytes.

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.