Struct aws_sdk_qbusiness::types::Rule
source · #[non_exhaustive]pub struct Rule {
pub included_users_and_groups: Option<UsersAndGroups>,
pub excluded_users_and_groups: Option<UsersAndGroups>,
pub rule_type: RuleType,
pub rule_configuration: Option<RuleConfiguration>,
}Expand description
Guardrail rules for an Amazon Q application. Amazon Q supports only one rule at a time.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.included_users_and_groups: Option<UsersAndGroups>Users and groups to be included in a rule.
excluded_users_and_groups: Option<UsersAndGroups>Users and groups to be excluded from a rule.
rule_type: RuleTypeThe type fo rule.
rule_configuration: Option<RuleConfiguration>The configuration information for a rule.
Implementations§
source§impl Rule
impl Rule
sourcepub fn included_users_and_groups(&self) -> Option<&UsersAndGroups>
pub fn included_users_and_groups(&self) -> Option<&UsersAndGroups>
Users and groups to be included in a rule.
sourcepub fn excluded_users_and_groups(&self) -> Option<&UsersAndGroups>
pub fn excluded_users_and_groups(&self) -> Option<&UsersAndGroups>
Users and groups to be excluded from a rule.
sourcepub fn rule_configuration(&self) -> Option<&RuleConfiguration>
pub fn rule_configuration(&self) -> Option<&RuleConfiguration>
The configuration information for a rule.
Trait Implementations§
source§impl PartialEq for Rule
impl PartialEq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.