Enum aws_sdk_connectcases::model::FieldFilter
source · [−]#[non_exhaustive]
pub enum FieldFilter {
Contains(FieldValue),
EqualTo(FieldValue),
GreaterThan(FieldValue),
GreaterThanOrEqualTo(FieldValue),
LessThan(FieldValue),
LessThanOrEqualTo(FieldValue),
Unknown,
}
Expand description
A filter for fields. Only one value can be provided.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Contains(FieldValue)
Object containing field identifier and value information.
EqualTo(FieldValue)
Object containing field identifier and value information.
GreaterThan(FieldValue)
Object containing field identifier and value information.
GreaterThanOrEqualTo(FieldValue)
Object containing field identifier and value information.
LessThan(FieldValue)
Object containing field identifier and value information.
LessThanOrEqualTo(FieldValue)
Object containing field identifier and value information.
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
sourceimpl FieldFilter
impl FieldFilter
sourcepub fn as_contains(&self) -> Result<&FieldValue, &Self>
pub fn as_contains(&self) -> Result<&FieldValue, &Self>
Tries to convert the enum instance into Contains
, extracting the inner FieldValue
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_contains(&self) -> bool
pub fn is_contains(&self) -> bool
Returns true if this is a Contains
.
sourcepub fn as_equal_to(&self) -> Result<&FieldValue, &Self>
pub fn as_equal_to(&self) -> Result<&FieldValue, &Self>
Tries to convert the enum instance into EqualTo
, extracting the inner FieldValue
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_equal_to(&self) -> bool
pub fn is_equal_to(&self) -> bool
Returns true if this is a EqualTo
.
sourcepub fn as_greater_than(&self) -> Result<&FieldValue, &Self>
pub fn as_greater_than(&self) -> Result<&FieldValue, &Self>
Tries to convert the enum instance into GreaterThan
, extracting the inner FieldValue
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_greater_than(&self) -> bool
pub fn is_greater_than(&self) -> bool
Returns true if this is a GreaterThan
.
sourcepub fn as_greater_than_or_equal_to(&self) -> Result<&FieldValue, &Self>
pub fn as_greater_than_or_equal_to(&self) -> Result<&FieldValue, &Self>
Tries to convert the enum instance into GreaterThanOrEqualTo
, extracting the inner FieldValue
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_greater_than_or_equal_to(&self) -> bool
pub fn is_greater_than_or_equal_to(&self) -> bool
Returns true if this is a GreaterThanOrEqualTo
.
sourcepub fn as_less_than(&self) -> Result<&FieldValue, &Self>
pub fn as_less_than(&self) -> Result<&FieldValue, &Self>
Tries to convert the enum instance into LessThan
, extracting the inner FieldValue
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_less_than(&self) -> bool
pub fn is_less_than(&self) -> bool
Returns true if this is a LessThan
.
sourcepub fn as_less_than_or_equal_to(&self) -> Result<&FieldValue, &Self>
pub fn as_less_than_or_equal_to(&self) -> Result<&FieldValue, &Self>
Tries to convert the enum instance into LessThanOrEqualTo
, extracting the inner FieldValue
.
Returns Err(&Self)
if it can’t be converted.
sourcepub fn is_less_than_or_equal_to(&self) -> bool
pub fn is_less_than_or_equal_to(&self) -> bool
Returns true if this is a LessThanOrEqualTo
.
sourcepub fn is_unknown(&self) -> bool
pub fn is_unknown(&self) -> bool
Returns true if the enum instance is the Unknown
variant.
Trait Implementations
sourceimpl Clone for FieldFilter
impl Clone for FieldFilter
sourcefn clone(&self) -> FieldFilter
fn clone(&self) -> FieldFilter
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more