pub struct Instance {
pub name: String,
pub status: String,
pub status_code: u16,
pub instance_type: String,
pub architecture: String,
pub created_at: String,
pub last_used_at: String,
pub location: String,
pub project: String,
pub config: Value,
pub devices: Value,
pub profiles: Vec<String>,
}Expand description
A container or virtual machine. config/devices stay untyped
(serde_json::Value) - Incus’s instance config schema is large and
mostly free-form key-value pairs, so fully typing it is out of scope for
this crate.
Fields§
§name: String§status: String§status_code: u16§instance_type: String§architecture: String§created_at: String§last_used_at: String§location: String§project: String§config: Value§devices: Value§profiles: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Instance
impl<'de> Deserialize<'de> for Instance
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Instance
impl RefUnwindSafe for Instance
impl Send for Instance
impl Sync for Instance
impl Unpin for Instance
impl UnsafeUnpin for Instance
impl UnwindSafe for Instance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more