[−][src]Struct rusoto_kendra::AttributeFilter
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 appicable to StringListValue
metadata.
contains_any: Option<DocumentAttribute>
Returns true when a document contains any of the specified document attributes.This filter is only appicable 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
impl Clone for AttributeFilter
[src]
fn clone(&self) -> AttributeFilter
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AttributeFilter
[src]
impl Default for AttributeFilter
[src]
fn default() -> AttributeFilter
[src]
impl PartialEq<AttributeFilter> for AttributeFilter
[src]
fn eq(&self, other: &AttributeFilter) -> bool
[src]
fn ne(&self, other: &AttributeFilter) -> bool
[src]
impl Serialize for AttributeFilter
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for AttributeFilter
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,