Struct PermissionProfile

Source
pub struct PermissionProfile {
    pub enabled: bool,
    pub policy: Option<Vec<ProfilePolicy>>,
    pub profile_type_name: Option<String>,
    pub profile_version: Option<String>,
    pub property: Option<Vec<ProfileApplyProfileProperty>>,
    pub favorite: Option<bool>,
    pub to_be_merged: Option<bool>,
    pub to_replace_with: Option<bool>,
    pub to_be_deleted: Option<bool>,
    pub copy_enable_status: Option<bool>,
    pub hidden: Option<bool>,
    pub key: String,
}
Expand description

The PermissionProfile data object represents the profile for a permission rule.

Use the ApplyProfile.policy list for access to configuration data for the permission profile. Use the ApplyProfile.property list for access to subprofiles, if any.

Fields§

§enabled: bool

Indicates whether the profile is enabled.

§policy: Option<Vec<ProfilePolicy>>

The list of policies comprising the profile.

A ProfilePolicy stores one or more configuration data values in a PolicyOption. The policy option is one of the configuration options from the ProfilePolicyMetadata.ProfilePolicyMetadata.possibleOption list.

§profile_type_name: Option<String>

Identifies the profile type.

§profile_version: Option<String>

Profile engine version.

§property: Option<Vec<ProfileApplyProfileProperty>>

List of subprofiles for this profile.

This list can change depending on which profile plug-ins are available in the system. Subprofiles can be nested to arbitrary depths to represent host capabilities.

§favorite: Option<bool>

Indicates whether this profile is marked as “favorite”.

§to_be_merged: Option<bool>

Indicates whether this profile is marked as to-be-merged.

§to_replace_with: Option<bool>

Indicates whether the selected array elements, with the current as one of them, replace the profile array in the target host profile.

§to_be_deleted: Option<bool>

Indicates whether this profile is marked as to-be-deleted.

§copy_enable_status: Option<bool>

Indicates that the member variable enabled of this profile will be copied from source profile to target profiles at host profile composition.

§hidden: Option<bool>

Indicates whether this profile will be displayed or not.

§key: String

Trait Implementations§

Source§

impl ApplyProfileTrait for PermissionProfile

Source§

fn get_enabled(&self) -> bool

Indicates whether the profile is enabled.
Source§

fn get_policy(&self) -> &Option<Vec<ProfilePolicy>>

The list of policies comprising the profile. Read more
Source§

fn get_profile_type_name(&self) -> &Option<String>

Identifies the profile type.
Source§

fn get_profile_version(&self) -> &Option<String>

Profile engine version.
Source§

fn get_property(&self) -> &Option<Vec<ProfileApplyProfileProperty>>

List of subprofiles for this profile. Read more
Source§

fn get_favorite(&self) -> Option<bool>

Indicates whether this profile is marked as “favorite”.
Source§

fn get_to_be_merged(&self) -> Option<bool>

Indicates whether this profile is marked as to-be-merged.
Source§

fn get_to_replace_with(&self) -> Option<bool>

Indicates whether the selected array elements, with the current as one of them, replace the profile array in the target host profile.
Source§

fn get_to_be_deleted(&self) -> Option<bool>

Indicates whether this profile is marked as to-be-deleted.
Source§

fn get_copy_enable_status(&self) -> Option<bool>

Indicates that the member variable enabled of this profile will be copied from source profile to target profiles at host profile composition.
Source§

fn get_hidden(&self) -> Option<bool>

Indicates whether this profile will be displayed or not.
Source§

impl Debug for PermissionProfile

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for PermissionProfile

Source§

fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for PermissionProfile

Source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl VimObjectTrait for PermissionProfile

Source§

impl DataObjectTrait for PermissionProfile

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsAny for T
where T: 'static,

Source§

fn as_any_ref<'a>(&'a self) -> &'a (dyn Any + 'static)

Cast a reference to Any trait.

Source§

fn as_any_box(self: Box<T>) -> Box<dyn Any>

Cast to a boxed reference to Any trait.

Source§

fn type_id(&self) -> TypeId

Get the underlying type identifier.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<To, T> CastInto<To> for T
where To: CastFrom<T> + ?Sized, T: 'static + ?Sized,

Source§

fn into_ref<'a>(&'a self) -> Option<&'a To>

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

fn into_box(self: Box<T>) -> Result<Box<To>, Box<dyn Any>>

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T