#[non_exhaustive]pub enum ConfigurationOptions {
Boolean(BooleanConfigurationOptions),
Double(DoubleConfigurationOptions),
Enum(EnumConfigurationOptions),
EnumList(EnumListConfigurationOptions),
Integer(IntegerConfigurationOptions),
IntegerList(IntegerListConfigurationOptions),
String(StringConfigurationOptions),
StringList(StringListConfigurationOptions),
Unknown,
}
Expand description
The options for customizing a security control parameter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Boolean(BooleanConfigurationOptions)
The options for customizing a security control parameter that is a boolean. For a boolean parameter, the options are true
and false
.
Double(DoubleConfigurationOptions)
The options for customizing a security control parameter that is a double.
Enum(EnumConfigurationOptions)
The options for customizing a security control parameter that is an enum.
EnumList(EnumListConfigurationOptions)
The options for customizing a security control parameter that is a list of enums.
Integer(IntegerConfigurationOptions)
The options for customizing a security control parameter that is an integer.
IntegerList(IntegerListConfigurationOptions)
The options for customizing a security control parameter that is a list of integers.
String(StringConfigurationOptions)
The options for customizing a security control parameter that is a string data type.
StringList(StringListConfigurationOptions)
The options for customizing a security control parameter that is a list of strings.
Unknown
The Unknown
variant represents cases where new union variant was received. Consider upgrading the SDK to the latest available version.
An unknown enum variant
Note: If you encounter this error, consider upgrading your SDK to the latest version.
The Unknown
variant represents cases where the server sent a value that wasn’t recognized
by the client. This can happen when the server adds new functionality, but the client has not been updated.
To investigate this, consider turning on debug logging to print the raw HTTP response.
Implementations§
source§impl ConfigurationOptions
impl ConfigurationOptions
sourcepub fn as_boolean(&self) -> Result<&BooleanConfigurationOptions, &Self>
pub fn as_boolean(&self) -> Result<&BooleanConfigurationOptions, &Self>
Tries to convert the enum instance into Boolean
, extracting the inner BooleanConfigurationOptions
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_boolean(&self) -> bool
pub fn is_boolean(&self) -> bool
Returns true if this is a Boolean
.
sourcepub fn as_double(&self) -> Result<&DoubleConfigurationOptions, &Self>
pub fn as_double(&self) -> Result<&DoubleConfigurationOptions, &Self>
Tries to convert the enum instance into Double
, extracting the inner DoubleConfigurationOptions
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn as_enum(&self) -> Result<&EnumConfigurationOptions, &Self>
pub fn as_enum(&self) -> Result<&EnumConfigurationOptions, &Self>
Tries to convert the enum instance into Enum
, extracting the inner EnumConfigurationOptions
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn as_enum_list(&self) -> Result<&EnumListConfigurationOptions, &Self>
pub fn as_enum_list(&self) -> Result<&EnumListConfigurationOptions, &Self>
Tries to convert the enum instance into EnumList
, extracting the inner EnumListConfigurationOptions
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_enum_list(&self) -> bool
pub fn is_enum_list(&self) -> bool
Returns true if this is a EnumList
.
sourcepub fn as_integer(&self) -> Result<&IntegerConfigurationOptions, &Self>
pub fn as_integer(&self) -> Result<&IntegerConfigurationOptions, &Self>
Tries to convert the enum instance into Integer
, extracting the inner IntegerConfigurationOptions
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_integer(&self) -> bool
pub fn is_integer(&self) -> bool
Returns true if this is a Integer
.
sourcepub fn as_integer_list(&self) -> Result<&IntegerListConfigurationOptions, &Self>
pub fn as_integer_list(&self) -> Result<&IntegerListConfigurationOptions, &Self>
Tries to convert the enum instance into IntegerList
, extracting the inner IntegerListConfigurationOptions
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_integer_list(&self) -> bool
pub fn is_integer_list(&self) -> bool
Returns true if this is a IntegerList
.
sourcepub fn as_string(&self) -> Result<&StringConfigurationOptions, &Self>
pub fn as_string(&self) -> Result<&StringConfigurationOptions, &Self>
Tries to convert the enum instance into String
, extracting the inner StringConfigurationOptions
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn as_string_list(&self) -> Result<&StringListConfigurationOptions, &Self>
pub fn as_string_list(&self) -> Result<&StringListConfigurationOptions, &Self>
Tries to convert the enum instance into StringList
, extracting the inner StringListConfigurationOptions
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_string_list(&self) -> bool
pub fn is_string_list(&self) -> bool
Returns true if this is a StringList
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations§
source§impl Clone for ConfigurationOptions
impl Clone for ConfigurationOptions
source§fn clone(&self) -> ConfigurationOptions
fn clone(&self) -> ConfigurationOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConfigurationOptions
impl Debug for ConfigurationOptions
source§impl PartialEq for ConfigurationOptions
impl PartialEq for ConfigurationOptions
source§fn eq(&self, other: &ConfigurationOptions) -> bool
fn eq(&self, other: &ConfigurationOptions) -> bool
self
and other
values to be equal, and is used
by ==
.