pub struct VirtualMachineWithConfigContextRequest {Show 20 fields
pub name: String,
pub status: Option<Status>,
pub site: Option<Option<Box<PatchedWritableVlanRequestSite>>>,
pub cluster: Option<Option<Box<DeviceWithConfigContextRequestCluster>>>,
pub device: Option<Option<Box<DeviceBayRequestInstalledDevice>>>,
pub serial: Option<String>,
pub role: Option<Option<Box<PatchedWritableVirtualMachineWithConfigContextRequestRole>>>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub platform: Option<Option<Box<DeviceTypeRequestDefaultPlatform>>>,
pub primary_ip4: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>,
pub primary_ip6: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>,
pub vcpus: Option<Option<f64>>,
pub memory: Option<Option<i32>>,
pub disk: Option<Option<i32>>,
pub description: Option<String>,
pub comments: Option<String>,
pub config_template: Option<Option<Box<DeviceRoleRequestConfigTemplate>>>,
pub local_context_data: Option<Option<Value>>,
pub tags: Option<Vec<NestedTagRequest>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
VirtualMachineWithConfigContextRequest : Adds support for custom fields and tags.
Fields§
§name: String§status: Option<Status>offline- Offline *active- Active *planned- Planned *staged- Staged *failed- Failed *decommissioning- Decommissioning *paused- Paused
site: Option<Option<Box<PatchedWritableVlanRequestSite>>>§cluster: Option<Option<Box<DeviceWithConfigContextRequestCluster>>>§device: Option<Option<Box<DeviceBayRequestInstalledDevice>>>§serial: Option<String>§role: Option<Option<Box<PatchedWritableVirtualMachineWithConfigContextRequestRole>>>§tenant: Option<Option<Box<AsnRangeRequestTenant>>>§platform: Option<Option<Box<DeviceTypeRequestDefaultPlatform>>>§primary_ip4: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>§primary_ip6: Option<Option<Box<DeviceWithConfigContextRequestPrimaryIp4>>>§vcpus: Option<Option<f64>>§memory: Option<Option<i32>>§disk: Option<Option<i32>>§description: Option<String>§comments: Option<String>§config_template: Option<Option<Box<DeviceRoleRequestConfigTemplate>>>§local_context_data: Option<Option<Value>>Local config context data takes precedence over source contexts in the final rendered config context
custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl VirtualMachineWithConfigContextRequest
impl VirtualMachineWithConfigContextRequest
Sourcepub fn new(name: String) -> VirtualMachineWithConfigContextRequest
pub fn new(name: String) -> VirtualMachineWithConfigContextRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for VirtualMachineWithConfigContextRequest
impl Clone for VirtualMachineWithConfigContextRequest
Source§fn clone(&self) -> VirtualMachineWithConfigContextRequest
fn clone(&self) -> VirtualMachineWithConfigContextRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for VirtualMachineWithConfigContextRequest
impl Default for VirtualMachineWithConfigContextRequest
Source§fn default() -> VirtualMachineWithConfigContextRequest
fn default() -> VirtualMachineWithConfigContextRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VirtualMachineWithConfigContextRequest
impl<'de> Deserialize<'de> for VirtualMachineWithConfigContextRequest
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
Source§impl PartialEq for VirtualMachineWithConfigContextRequest
impl PartialEq for VirtualMachineWithConfigContextRequest
Source§fn eq(&self, other: &VirtualMachineWithConfigContextRequest) -> bool
fn eq(&self, other: &VirtualMachineWithConfigContextRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VirtualMachineWithConfigContextRequest
Auto Trait Implementations§
impl Freeze for VirtualMachineWithConfigContextRequest
impl RefUnwindSafe for VirtualMachineWithConfigContextRequest
impl Send for VirtualMachineWithConfigContextRequest
impl Sync for VirtualMachineWithConfigContextRequest
impl Unpin for VirtualMachineWithConfigContextRequest
impl UnwindSafe for VirtualMachineWithConfigContextRequest
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