Struct rusoto_kendra::AttributeFilter
source · [−]pub struct AttributeFilter {
pub and_all_filters: Option<Vec<AttributeFilter>>,
pub contains_all: Option<DocumentAttribute>,
pub contains_any: Option<DocumentAttribute>,
pub equals_to: Option<DocumentAttribute>,
pub greater_than: Option<DocumentAttribute>,
pub greater_than_or_equals: Option<DocumentAttribute>,
pub less_than: Option<DocumentAttribute>,
pub less_than_or_equals: Option<DocumentAttribute>,
pub not_filter: Box<Option<AttributeFilter>>,
pub or_all_filters: Option<Vec<AttributeFilter>>,
}
Expand description
Provides filtering the query results based on document attributes.
When you use the AndAllFilters
or OrAllFilters
, filters you can use 2 layers under the first attribute filter. For example, you can use:
<AndAllFilters>
-
<OrAllFilters>
-
<EqualTo>
If you use more than 2 layers, you receive a ValidationException
exception with the message "AttributeFilter
cannot have a depth of more than 2."
Fields
and_all_filters: Option<Vec<AttributeFilter>>
Performs a logical AND
operation on all supplied filters.
contains_all: Option<DocumentAttribute>
Returns true when a document contains all of the specified document attributes. This filter is only applicable to StringListValue
metadata.
contains_any: Option<DocumentAttribute>
Returns true when a document contains any of the specified document attributes. This filter is only applicable to StringListValue
metadata.
equals_to: Option<DocumentAttribute>
Performs an equals operation on two document attributes.
greater_than: Option<DocumentAttribute>
Performs a greater than operation on two document attributes. Use with a document attribute of type Integer
or Long
.
greater_than_or_equals: Option<DocumentAttribute>
Performs a greater or equals than operation on two document attributes. Use with a document attribute of type Integer
or Long
.
less_than: Option<DocumentAttribute>
Performs a less than operation on two document attributes. Use with a document attribute of type Integer
or Long
.
less_than_or_equals: Option<DocumentAttribute>
Performs a less than or equals operation on two document attributes. Use with a document attribute of type Integer
or Long
.
not_filter: Box<Option<AttributeFilter>>
Performs a logical NOT
operation on all supplied filters.
or_all_filters: Option<Vec<AttributeFilter>>
Performs a logical OR
operation on all supplied filters.
Trait Implementations
sourceimpl Clone for AttributeFilter
impl Clone for AttributeFilter
sourcefn clone(&self) -> AttributeFilter
fn clone(&self) -> AttributeFilter
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AttributeFilter
impl Debug for AttributeFilter
sourceimpl Default for AttributeFilter
impl Default for AttributeFilter
sourcefn default() -> AttributeFilter
fn default() -> AttributeFilter
Returns the “default value” for a type. Read more
sourceimpl PartialEq<AttributeFilter> for AttributeFilter
impl PartialEq<AttributeFilter> for AttributeFilter
sourcefn eq(&self, other: &AttributeFilter) -> bool
fn eq(&self, other: &AttributeFilter) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AttributeFilter) -> bool
fn ne(&self, other: &AttributeFilter) -> bool
This method tests for !=
.
sourceimpl Serialize for AttributeFilter
impl Serialize for AttributeFilter
impl StructuralPartialEq for AttributeFilter
Auto Trait Implementations
impl RefUnwindSafe for AttributeFilter
impl Send for AttributeFilter
impl Sync for AttributeFilter
impl Unpin for AttributeFilter
impl UnwindSafe for AttributeFilter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more