[][src]Struct rusoto_kendra::AttributeFilter

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>>,
}

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>

  1. <OrAllFilters>

  2. <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]

impl Debug for AttributeFilter[src]

impl Default for AttributeFilter[src]

impl PartialEq<AttributeFilter> for AttributeFilter[src]

impl Serialize for AttributeFilter[src]

impl StructuralPartialEq for AttributeFilter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.