Struct rusoto_kendra::SortingConfiguration
source · [−]Expand description
Specifies the document attribute to use to sort the response to a Amazon Kendra query. You can specify a single attribute for sorting. The attribute must have the Sortable
flag set to true
, otherwise Amazon Kendra returns an exception.
You can sort attributes of the following types.
-
Date value
-
Long value
-
String value
You can't sort attributes of the following type.
-
String list value
Fields
document_attribute_key: String
The name of the document attribute used to sort the response. You can use any field that has the Sortable
flag set to true.
You can also sort by any of the following built-in attributes:
-
category
-
createdat
-
lastupdatedat
-
version
-
view_count
sort_order: String
The order that the results should be returned in. In case of ties, the relevance assigned to the result by Amazon Kendra is used as the tie-breaker.
Trait Implementations
sourceimpl Clone for SortingConfiguration
impl Clone for SortingConfiguration
sourcefn clone(&self) -> SortingConfiguration
fn clone(&self) -> SortingConfiguration
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 SortingConfiguration
impl Debug for SortingConfiguration
sourceimpl Default for SortingConfiguration
impl Default for SortingConfiguration
sourcefn default() -> SortingConfiguration
fn default() -> SortingConfiguration
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SortingConfiguration> for SortingConfiguration
impl PartialEq<SortingConfiguration> for SortingConfiguration
sourcefn eq(&self, other: &SortingConfiguration) -> bool
fn eq(&self, other: &SortingConfiguration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SortingConfiguration) -> bool
fn ne(&self, other: &SortingConfiguration) -> bool
This method tests for !=
.
sourceimpl Serialize for SortingConfiguration
impl Serialize for SortingConfiguration
impl StructuralPartialEq for SortingConfiguration
Auto Trait Implementations
impl RefUnwindSafe for SortingConfiguration
impl Send for SortingConfiguration
impl Sync for SortingConfiguration
impl Unpin for SortingConfiguration
impl UnwindSafe for SortingConfiguration
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