pub struct OptionValue {
pub key: String,
pub value: Option<VimAny>,
}Expand description
Describes the key/value pair of a configured option.
§How to access
ComputeResource::configuration_ex→ClusterConfigInfoEx.das_config.option?[*]ComputeResource::configuration_ex→ClusterConfigInfoEx.drs_config.option?[*]ComputeResource::configuration_ex→ClusterConfigInfoEx.dpm_config_info?.option?[*]ClusterComputeResource::configuration.das_config.option?[*]ClusterComputeResource::configuration.drs_config.option?[*]ClusterComputeResource::configuration_ex→ClusterConfigInfoEx.das_config.option?[*]ClusterComputeResource::configuration_ex→ClusterConfigInfoEx.drs_config.option?[*]ClusterComputeResource::configuration_ex→ClusterConfigInfoEx.dpm_config_info?.option?[*]Datacenter::power_on_multi_vm_task(option)Datastore::datastore_enter_maintenance_mode().recommendations?[*].action?[*]→ClusterClusterInitialPlacementAction.config_spec?.extra_config?[*]
(10 of 100 paths)
Fields§
§key: StringThe name of the option using dot notation to reflect the option’s position in a hierarchy.
For example, you might have an option called “Ethernet” and another option that is a child of that called “Connection”. In this case, the key for the latter could be defined as “Ethernet.Connection”
value: Option<VimAny>The value of the option.
The Any data object type enables you to define any value for the option. Typically, however, the value of an option is of type String or Integer.
Trait Implementations§
Source§impl Debug for OptionValue
impl Debug for OptionValue
Source§impl Deserialize for OptionValue
impl Deserialize for OptionValue
Source§impl OptionValueTrait for OptionValue
impl OptionValueTrait for OptionValue
Source§fn get_option_value(&self) -> &OptionValue
fn get_option_value(&self) -> &OptionValue
Get a reference to the OptionValue parent struct
Source§fn get_option_value_mut(&mut self) -> &mut OptionValue
fn get_option_value_mut(&mut self) -> &mut OptionValue
Get a mutable reference to the OptionValue parent struct
Source§impl VimObjectTrait for OptionValue
impl VimObjectTrait for OptionValue
fn as_vim_object_ref<'a>(&'a self) -> &'a dyn VimObjectTrait
fn data_type(&self) -> StructType
impl DataObjectTrait for OptionValue
Auto Trait Implementations§
impl Freeze for OptionValue
impl !RefUnwindSafe for OptionValue
impl Send for OptionValue
impl Sync for OptionValue
impl Unpin for OptionValue
impl UnsafeUnpin for OptionValue
impl !UnwindSafe for OptionValue
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