#[non_exhaustive]pub struct GetRecommendationsInput {
pub assistant_id: Option<String>,
pub session_id: Option<String>,
pub max_results: Option<i32>,
pub wait_time_seconds: Option<i32>,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.assistant_id: Option<String>
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
session_id: Option<String>
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
max_results: Option<i32>
The maximum number of results to return per page.
wait_time_seconds: Option<i32>
The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds
. If no messages are available and the wait time expires, the call returns successfully with an empty list.
Implementations§
source§impl GetRecommendationsInput
impl GetRecommendationsInput
sourcepub fn assistant_id(&self) -> Option<&str>
pub fn assistant_id(&self) -> Option<&str>
The identifier of the Wisdom assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.
sourcepub fn max_results(&self) -> Option<i32>
pub fn max_results(&self) -> Option<i32>
The maximum number of results to return per page.
sourcepub fn wait_time_seconds(&self) -> Option<i32>
pub fn wait_time_seconds(&self) -> Option<i32>
The duration (in seconds) for which the call waits for a recommendation to be made available before returning. If a recommendation is available, the call returns sooner than WaitTimeSeconds
. If no messages are available and the wait time expires, the call returns successfully with an empty list.
source§impl GetRecommendationsInput
impl GetRecommendationsInput
sourcepub fn builder() -> GetRecommendationsInputBuilder
pub fn builder() -> GetRecommendationsInputBuilder
Creates a new builder-style object to manufacture GetRecommendationsInput
.
Trait Implementations§
source§impl Clone for GetRecommendationsInput
impl Clone for GetRecommendationsInput
source§fn clone(&self) -> GetRecommendationsInput
fn clone(&self) -> GetRecommendationsInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetRecommendationsInput
impl Debug for GetRecommendationsInput
source§impl PartialEq for GetRecommendationsInput
impl PartialEq for GetRecommendationsInput
source§fn eq(&self, other: &GetRecommendationsInput) -> bool
fn eq(&self, other: &GetRecommendationsInput) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetRecommendationsInput
Auto Trait Implementations§
impl Freeze for GetRecommendationsInput
impl RefUnwindSafe for GetRecommendationsInput
impl Send for GetRecommendationsInput
impl Sync for GetRecommendationsInput
impl Unpin for GetRecommendationsInput
impl UnwindSafe for GetRecommendationsInput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more