#[non_exhaustive]pub struct ControlPlaneUserAttributeFilter {
pub or_conditions: Option<Vec<AttributeAndCondition>>,
pub and_condition: Option<AttributeAndCondition>,
pub tag_condition: Option<TagCondition>,
pub hierarchy_group_condition: Option<HierarchyGroupCondition>,
}
Expand description
An object that can be used to specify Tag conditions or Hierarchy Group conditions inside the SearchFilter
.
This accepts an OR
of AND
(List of List) input where:
-
The top level list specifies conditions that need to be applied with
OR
operator -
The inner list specifies conditions that need to be applied with
AND
operator.
Only one field can be populated. Maximum number of allowed Tag conditions is 25. Maximum number of allowed Hierarchy Group conditions is 20.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.or_conditions: Option<Vec<AttributeAndCondition>>
A list of conditions which would be applied together with an OR
condition.
and_condition: Option<AttributeAndCondition>
A list of conditions which would be applied together with an AND
condition.
tag_condition: Option<TagCondition>
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123
.
hierarchy_group_condition: Option<HierarchyGroupCondition>
A leaf node condition which can be used to specify a hierarchy group condition.
Implementations§
source§impl ControlPlaneUserAttributeFilter
impl ControlPlaneUserAttributeFilter
sourcepub fn or_conditions(&self) -> &[AttributeAndCondition]
pub fn or_conditions(&self) -> &[AttributeAndCondition]
A list of conditions which would be applied together with an OR
condition.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .or_conditions.is_none()
.
sourcepub fn and_condition(&self) -> Option<&AttributeAndCondition>
pub fn and_condition(&self) -> Option<&AttributeAndCondition>
A list of conditions which would be applied together with an AND
condition.
sourcepub fn tag_condition(&self) -> Option<&TagCondition>
pub fn tag_condition(&self) -> Option<&TagCondition>
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123
.
sourcepub fn hierarchy_group_condition(&self) -> Option<&HierarchyGroupCondition>
pub fn hierarchy_group_condition(&self) -> Option<&HierarchyGroupCondition>
A leaf node condition which can be used to specify a hierarchy group condition.
source§impl ControlPlaneUserAttributeFilter
impl ControlPlaneUserAttributeFilter
sourcepub fn builder() -> ControlPlaneUserAttributeFilterBuilder
pub fn builder() -> ControlPlaneUserAttributeFilterBuilder
Creates a new builder-style object to manufacture ControlPlaneUserAttributeFilter
.
Trait Implementations§
source§impl Clone for ControlPlaneUserAttributeFilter
impl Clone for ControlPlaneUserAttributeFilter
source§fn clone(&self) -> ControlPlaneUserAttributeFilter
fn clone(&self) -> ControlPlaneUserAttributeFilter
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for ControlPlaneUserAttributeFilter
impl PartialEq for ControlPlaneUserAttributeFilter
source§fn eq(&self, other: &ControlPlaneUserAttributeFilter) -> bool
fn eq(&self, other: &ControlPlaneUserAttributeFilter) -> bool
self
and other
values to be equal, and is used
by ==
.