Struct digitalocean::prelude::Snapshot
[−]
[src]
pub struct Snapshot { /* fields omitted */ }
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.
Methods
impl Snapshot
[src]
fn id(&self) -> &String
[src]
The unique identifier for the snapshot.
fn name(&self) -> &String
[src]
A human-readable name for the snapshot.
fn created_at(&self) -> &DateTime<Utc>
[src]
A time value given in ISO8601 combined date and time format that represents when the snapshot was created.
fn regions(&self) -> &Vec<String>
[src]
An array of the regions that the image is available in. The regions are represented by their identifying slug values.
fn resource_id(&self) -> &String
[src]
A unique identifier for the resource that the action is associated with.
fn resource_type(&self) -> &String
[src]
The type of resource that the action is associated with.
fn min_disk_size(&self) -> &usize
[src]
The minimum size in GB required for a volume or Droplet to use this snapshot.
fn size_gigabytes(&self) -> &f64
[src]
The billable size of the snapshot in gigabytes.
impl Snapshot
[src]
fn list() -> SnapshotRequest<List, Vec<Snapshot>>
[src]
fn droplets() -> SnapshotRequest<List, Vec<Snapshot>>
[src]
fn volumes() -> SnapshotRequest<List, Vec<Snapshot>>
[src]
fn get(id: usize) -> SnapshotRequest<Get, Snapshot>
[src]
fn delete(id: usize) -> SnapshotRequest<Delete, ()>
[src]
Trait Implementations
impl Debug for Snapshot
[src]
impl Clone for Snapshot
[src]
fn clone(&self) -> Snapshot
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more