Skip to main content

ClusterProfileConfigSpecTrait

Trait ClusterProfileConfigSpecTrait 

Source
pub trait ClusterProfileConfigSpecTrait: ClusterProfileCreateSpecTrait {
    // Required methods
    fn get_cluster_profile_config_spec(&self) -> &ClusterProfileConfigSpec;
    fn get_cluster_profile_config_spec_mut(
        &mut self,
    ) -> &mut ClusterProfileConfigSpec;
}
Expand description

DataObject which is a baseclass for other configuration specifications.

§How to access

  • ClusterProfile::update_cluster_profile(config)
  • HostProfileManager::create_profile(create_spec)⇒ClusterProfileConfigSpecTrait
  • ProfileManager::create_profile(create_spec)⇒ClusterProfileConfigSpecTrait
  • ClusterProfileManager::create_profile(create_spec)⇒ClusterProfileConfigSpecTrait

Required Methods§

Source

fn get_cluster_profile_config_spec(&self) -> &ClusterProfileConfigSpec

Get a reference to the ClusterProfileConfigSpec parent struct

Source

fn get_cluster_profile_config_spec_mut( &mut self, ) -> &mut ClusterProfileConfigSpec

Get a mutable reference to the ClusterProfileConfigSpec parent struct

Trait Implementations§

Source§

impl<From: VimObjectTrait + ?Sized + 'static> CastFrom<From> for dyn ClusterProfileConfigSpecTrait

Source§

fn from_ref<'a>(from: &'a From) -> Option<&'a Self>

Casts a reference to a trait object. If the cast fails, std::option::Option::None is returned.
Source§

fn from_box(from: Box<From>) -> Result<Box<Self>, Box<dyn Any + 'static>>

Casts a boxed trait object to another trait object. If the cast fails, the original boxed trait object is returned in std::result::Result::Err.
Source§

impl Deref for dyn ClusterProfileConfigSpecTrait

Source§

type Target = ClusterProfileConfigSpec

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for dyn ClusterProfileConfigSpecTrait

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Deserialize for Box<dyn ClusterProfileConfigSpecTrait>

Source§

fn begin(out: &mut Option<Self>) -> &mut dyn Visitor

The only correct implementation of this method is: Read more

Implementors§