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