Struct xo_api_client::vm::Vm [−][src]
pub struct Vm<O> {
pub id: VmId,
pub name_label: String,
pub name_description: String,
pub power_state: PowerState,
pub pool: String,
pub tags: Vec<String>,
pub os_version: BTreeMap<String, String>,
pub other: O,
// some fields omitted
}Expand description
Type representing a VM
Note that the “other” property contains a lot of different data. In the Xen Orchestra the user may
even add additional values. For this reason the struct is made generic over the type O.
See the trait OtherInfo for more info
Fields
id: VmIdname_label: Stringname_description: Stringpower_state: PowerStatepool: Stringos_version: BTreeMap<String, String>other: OImplementations
Check if VM is running.
Try to guess OS distro of VM
Note: This only works for running VMs, returns None when distro
can not be determined.
Get iterator of all valid IPv4 addresses for VM.
Note: This only works for running VMs, returns empty iterator otherwise
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