pub struct Instance {
pub description: String,
pub hostname: String,
pub id: String,
pub memory: i64,
pub name: String,
pub ncpus: i64,
pub project_id: String,
pub run_state: InstanceState,
pub time_created: Option<DateTime<Utc>>,
pub time_modified: Option<DateTime<Utc>>,
pub time_run_state_updated: Option<DateTime<Utc>>,
}Expand description
Client view of an Instance
Fields
description: String- human-readable free-form text about a resource
hostname: String- human-readable free-form text about a resource
id: String- human-readable free-form text about a resource
memory: 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.
name: String- human-readable free-form text about a resource
ncpus: 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.
project_id: String- human-readable free-form text about a resource
run_state: InstanceState- Running state of an Instance (primarily: booted or stopped)
- This typically reflects whether it’s starting, running, stopping, or stopped, but also includes states related to the Instance’s lifecycle
time_created: Option<DateTime<Utc>>- timestamp when this resource was created
time_modified: Option<DateTime<Utc>>- timestamp when this resource was created
time_run_state_updated: Option<DateTime<Utc>>- timestamp when this resource was created
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
Auto Trait Implementations
impl RefUnwindSafe for Instance
impl UnwindSafe for Instance
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
