pub struct WritableVirtualMachineWithConfigContextRequest {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
WritableVirtualMachineWithConfigContextRequest : 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 WritableVirtualMachineWithConfigContextRequest
impl WritableVirtualMachineWithConfigContextRequest
Sourcepub fn new(name: String) -> WritableVirtualMachineWithConfigContextRequest
pub fn new(name: String) -> WritableVirtualMachineWithConfigContextRequest
Adds support for custom fields and tags.
Trait Implementations§
Source§impl Clone for WritableVirtualMachineWithConfigContextRequest
impl Clone for WritableVirtualMachineWithConfigContextRequest
Source§fn clone(&self) -> WritableVirtualMachineWithConfigContextRequest
fn clone(&self) -> WritableVirtualMachineWithConfigContextRequest
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 WritableVirtualMachineWithConfigContextRequest
impl Default for WritableVirtualMachineWithConfigContextRequest
Source§fn default() -> WritableVirtualMachineWithConfigContextRequest
fn default() -> WritableVirtualMachineWithConfigContextRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WritableVirtualMachineWithConfigContextRequest
impl<'de> Deserialize<'de> for WritableVirtualMachineWithConfigContextRequest
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 WritableVirtualMachineWithConfigContextRequest
impl PartialEq for WritableVirtualMachineWithConfigContextRequest
Source§fn eq(&self, other: &WritableVirtualMachineWithConfigContextRequest) -> bool
fn eq(&self, other: &WritableVirtualMachineWithConfigContextRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WritableVirtualMachineWithConfigContextRequest
Auto Trait Implementations§
impl Freeze for WritableVirtualMachineWithConfigContextRequest
impl RefUnwindSafe for WritableVirtualMachineWithConfigContextRequest
impl Send for WritableVirtualMachineWithConfigContextRequest
impl Sync for WritableVirtualMachineWithConfigContextRequest
impl Unpin for WritableVirtualMachineWithConfigContextRequest
impl UnwindSafe for WritableVirtualMachineWithConfigContextRequest
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