pub struct Disk {
pub id: String,
pub name: String,
pub description: String,
pub block_size: u64,
pub device_path: String,
pub image_id: String,
pub project_id: String,
pub size: u64,
pub snapshot_id: String,
pub state: DiskState,
pub time_created: DisplayOptionDateTime,
pub time_modified: DisplayOptionDateTime,
}
Expand description
Client view of a Disk
Fields§
§id: String
unique, immutable, system-controlled identifier for each resource
name: String
Names must begin with a lower case ASCII letter, be composed exclusively of lowercase ASCII, uppercase ASCII, numbers, and ‘-’, and may not end with a ‘-’. Names cannot be a UUID though they may contain a UUID.
description: String
human-readable free-form text about a resource
block_size: u64
A count of bytes, typically used either for memory or storage capacity
The maximum supported byte count is i64::MAX
. This makes it somewhat inconvenient to define constructors: a u32 constructor can be infallible, but an i64 constructor can fail (if the value is negative) and a u64 constructor can fail (if the value is larger than i64::MAX). We provide all of these for consumers’ convenience.
device_path: String
§image_id: String
§project_id: String
§size: u64
A count of bytes, typically used either for memory or storage capacity
The maximum supported byte count is i64::MAX
. This makes it somewhat inconvenient to define constructors: a u32 constructor can be infallible, but an i64 constructor can fail (if the value is negative) and a u64 constructor can fail (if the value is larger than i64::MAX). We provide all of these for consumers’ convenience.
snapshot_id: String
§state: DiskState
§time_created: DisplayOptionDateTime
timestamp when this resource was created
time_modified: DisplayOptionDateTime
timestamp when this resource was last modified
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Disk
impl<'de> Deserialize<'de> for Disk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for Disk
impl JsonSchema for Disk
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more