#[non_exhaustive]pub struct EnumConfigurationOptions {
pub default_value: Option<String>,
pub allowed_values: Option<Vec<String>>,
}
Expand description
The options for customizing a security control parameter that is an enum.
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.default_value: Option<String>
The Security Hub default value for a control parameter that is an enum.
allowed_values: Option<Vec<String>>
The valid values for a control parameter that is an enum.
Implementations§
source§impl EnumConfigurationOptions
impl EnumConfigurationOptions
sourcepub fn default_value(&self) -> Option<&str>
pub fn default_value(&self) -> Option<&str>
The Security Hub default value for a control parameter that is an enum.
sourcepub fn allowed_values(&self) -> &[String]
pub fn allowed_values(&self) -> &[String]
The valid values for a control parameter that is an enum.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .allowed_values.is_none()
.
source§impl EnumConfigurationOptions
impl EnumConfigurationOptions
sourcepub fn builder() -> EnumConfigurationOptionsBuilder
pub fn builder() -> EnumConfigurationOptionsBuilder
Creates a new builder-style object to manufacture EnumConfigurationOptions
.
Trait Implementations§
source§impl Clone for EnumConfigurationOptions
impl Clone for EnumConfigurationOptions
source§fn clone(&self) -> EnumConfigurationOptions
fn clone(&self) -> EnumConfigurationOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EnumConfigurationOptions
impl Debug for EnumConfigurationOptions
source§impl PartialEq for EnumConfigurationOptions
impl PartialEq for EnumConfigurationOptions
source§fn eq(&self, other: &EnumConfigurationOptions) -> bool
fn eq(&self, other: &EnumConfigurationOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EnumConfigurationOptions
Auto Trait Implementations§
impl RefUnwindSafe for EnumConfigurationOptions
impl Send for EnumConfigurationOptions
impl Sync for EnumConfigurationOptions
impl Unpin for EnumConfigurationOptions
impl UnwindSafe for EnumConfigurationOptions
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.