pub struct Volume {
pub created: String,
pub format: Option<String>,
pub id: i64,
pub labels: HashMap<String, String>,
pub linux_device: String,
pub location: Box<Location>,
pub name: String,
pub protection: Box<Protection>,
pub server: Option<i64>,
pub size: f32,
pub status: Status,
}
Expand description
Volume : A Volume is a highly-available, scalable, and SSD-based block storage for Servers. Pricing for Volumes depends on the Volume size and Location, not the actual used storage. Please see Hetzner Wiki for more details about Volumes.
Fields§
§created: String
Point in time when the Resource was created (in ISO-8601 format)
format: Option<String>
Filesystem of the Volume if formatted on creation, null if not formatted on creation
id: i64
ID of the Resource
labels: HashMap<String, String>
User-defined labels (key-value pairs)
linux_device: String
Device path on the file system for the Volume
location: Box<Location>
§name: String
Name of the Resource. Must be unique per Project.
protection: Box<Protection>
§server: Option<i64>
ID of the Server the Volume is attached to, null if it is not attached at all
size: f32
Size in GB of the Volume
status: Status
Current status of the Volume
Implementations§
source§impl Volume
impl Volume
sourcepub fn new(
created: String,
format: Option<String>,
id: i64,
labels: HashMap<String, String>,
linux_device: String,
location: Location,
name: String,
protection: Protection,
server: Option<i64>,
size: f32,
status: Status
) -> Volume
pub fn new( created: String, format: Option<String>, id: i64, labels: HashMap<String, String>, linux_device: String, location: Location, name: String, protection: Protection, server: Option<i64>, size: f32, status: Status ) -> Volume
A Volume is a highly-available, scalable, and SSD-based block storage for Servers. Pricing for Volumes depends on the Volume size and Location, not the actual used storage. Please see Hetzner Wiki for more details about Volumes.