pub struct Image {
pub id: String,
pub name: String,
pub description: String,
pub block_size: u64,
pub digest: Option<Digest>,
pub project_id: String,
pub size: u64,
pub time_created: DisplayOptionDateTime,
pub time_modified: DisplayOptionDateTime,
pub url: String,
pub version: String,
}
Expand description
Client view of project Images
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.
digest: Option<Digest>
Hash of the image contents, if applicable
project_id: String
The project the disk belongs to
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.
time_created: DisplayOptionDateTime
timestamp when this resource was created
time_modified: DisplayOptionDateTime
timestamp when this resource was last modified
url: String
URL source of this image, if any
version: String
Version of this, if any
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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 Image
impl JsonSchema for Image
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