Struct digitalocean::prelude::Snapshot
source · 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.
Implementations§
source§impl Snapshot
impl Snapshot
sourcepub fn created_at(&self) -> &DateTime<Utc>
pub fn created_at(&self) -> &DateTime<Utc>
A time value given in ISO8601 combined date and time format that represents when the snapshot was created.
sourcepub fn regions(&self) -> &Vec<String>
pub fn regions(&self) -> &Vec<String>
An array of the regions that the image is available in. The regions are represented by their identifying slug values.
sourcepub fn resource_id(&self) -> &String
pub fn resource_id(&self) -> &String
A unique identifier for the resource that the action is associated with.
sourcepub fn resource_type(&self) -> &String
pub fn resource_type(&self) -> &String
The type of resource that the action is associated with.
sourcepub fn min_disk_size(&self) -> &usize
pub fn min_disk_size(&self) -> &usize
The minimum size in GB required for a volume or Droplet to use this snapshot.
sourcepub fn size_gigabytes(&self) -> &f64
pub fn size_gigabytes(&self) -> &f64
The billable size of the snapshot in gigabytes.