Struct oxide_api::types::DiskCreate
source · [−]pub struct DiskCreate {
pub description: String,
pub name: String,
pub size: i64,
pub snapshot_id: String,
}
Expand description
Create-time parameters for a Disk
Fields
description: String
human-readable free-form text about a resource
name: String
human-readable free-form text about a resource
size: i64
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
Create-time parameters for a Disk
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DiskCreate
impl Send for DiskCreate
impl Sync for DiskCreate
impl Unpin for DiskCreate
impl UnwindSafe for DiskCreate
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more