pub struct WritableVirtualMachineWithConfigContextRequest {Show 23 fields
pub name: String,
pub virtual_machine_type: Option<Option<Box<PatchedWritableVirtualMachineWithConfigContextRequestVirtualMachineType>>>,
pub role: Option<Option<Box<PatchedWritableVirtualMachineWithConfigContextRequestRole>>>,
pub status: Option<Status>,
pub start_on_boot: Option<StartOnBoot>,
pub site: Option<Option<Box<CreateAvailableVlanRequestSite>>>,
pub cluster: Option<Option<Box<DeviceWithConfigContextRequestCluster>>>,
pub device: Option<Option<Box<DeviceBayRequestInstalledDevice>>>,
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 serial: Option<String>,
pub tenant: Option<Option<Box<AsnRangeRequestTenant>>>,
pub owner: Option<Option<Box<AsnRangeRequestOwner>>>,
pub comments: Option<String>,
pub tags: Option<Vec<NestedTagRequest>>,
pub local_context_data: Option<Option<Value>>,
pub config_template: Option<Option<Box<DeviceRoleRequestConfigTemplate>>>,
pub custom_fields: Option<HashMap<String, Value>>,
}Expand description
WritableVirtualMachineWithConfigContextRequest : Base serializer class for models inheriting from PrimaryModel.
Fields§
§name: String§virtual_machine_type: Option<Option<Box<PatchedWritableVirtualMachineWithConfigContextRequestVirtualMachineType>>>§role: Option<Option<Box<PatchedWritableVirtualMachineWithConfigContextRequestRole>>>§status: Option<Status>offline- Offline *active- Active *planned- Planned *staged- Staged *failed- Failed *decommissioning- Decommissioning *paused- Paused
start_on_boot: Option<StartOnBoot>on- On *off- Off *laststate- Last State
site: Option<Option<Box<CreateAvailableVlanRequestSite>>>§cluster: Option<Option<Box<DeviceWithConfigContextRequestCluster>>>§device: Option<Option<Box<DeviceBayRequestInstalledDevice>>>§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>§serial: Option<String>§tenant: Option<Option<Box<AsnRangeRequestTenant>>>§owner: Option<Option<Box<AsnRangeRequestOwner>>>§comments: Option<String>§local_context_data: Option<Option<Value>>Local config context data takes precedence over source contexts in the final rendered config context
config_template: Option<Option<Box<DeviceRoleRequestConfigTemplate>>>§custom_fields: Option<HashMap<String, Value>>Implementations§
Source§impl WritableVirtualMachineWithConfigContextRequest
impl WritableVirtualMachineWithConfigContextRequest
Sourcepub fn new(name: String) -> WritableVirtualMachineWithConfigContextRequest
pub fn new(name: String) -> WritableVirtualMachineWithConfigContextRequest
Base serializer class for models inheriting from PrimaryModel.
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 (const: unstable) · 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 UnsafeUnpin 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