#[non_exhaustive]pub struct SuggestInputBuilder { /* private fields */ }
Expand description
A builder for SuggestInput
.
Implementations§
source§impl SuggestInputBuilder
impl SuggestInputBuilder
sourcepub fn query(self, input: impl Into<String>) -> Self
pub fn query(self, input: impl Into<String>) -> Self
Specifies the string for which you want to get suggestions.
This field is required.sourcepub fn set_query(self, input: Option<String>) -> Self
pub fn set_query(self, input: Option<String>) -> Self
Specifies the string for which you want to get suggestions.
sourcepub fn get_query(&self) -> &Option<String>
pub fn get_query(&self) -> &Option<String>
Specifies the string for which you want to get suggestions.
sourcepub fn suggester(self, input: impl Into<String>) -> Self
pub fn suggester(self, input: impl Into<String>) -> Self
Specifies the name of the suggester to use to find suggested matches.
This field is required.sourcepub fn set_suggester(self, input: Option<String>) -> Self
pub fn set_suggester(self, input: Option<String>) -> Self
Specifies the name of the suggester to use to find suggested matches.
sourcepub fn get_suggester(&self) -> &Option<String>
pub fn get_suggester(&self) -> &Option<String>
Specifies the name of the suggester to use to find suggested matches.
sourcepub fn set_size(self, input: Option<i64>) -> Self
pub fn set_size(self, input: Option<i64>) -> Self
Specifies the maximum number of suggestions to return.
sourcepub fn build(self) -> Result<SuggestInput, BuildError>
pub fn build(self) -> Result<SuggestInput, BuildError>
Consumes the builder and constructs a SuggestInput
.
source§impl SuggestInputBuilder
impl SuggestInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<SuggestOutput, SdkError<SuggestError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<SuggestOutput, SdkError<SuggestError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for SuggestInputBuilder
impl Clone for SuggestInputBuilder
source§fn clone(&self) -> SuggestInputBuilder
fn clone(&self) -> SuggestInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SuggestInputBuilder
impl Debug for SuggestInputBuilder
source§impl Default for SuggestInputBuilder
impl Default for SuggestInputBuilder
source§fn default() -> SuggestInputBuilder
fn default() -> SuggestInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SuggestInputBuilder
impl PartialEq for SuggestInputBuilder
source§fn eq(&self, other: &SuggestInputBuilder) -> bool
fn eq(&self, other: &SuggestInputBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuggestInputBuilder
Auto Trait Implementations§
impl Freeze for SuggestInputBuilder
impl RefUnwindSafe for SuggestInputBuilder
impl Send for SuggestInputBuilder
impl Sync for SuggestInputBuilder
impl Unpin for SuggestInputBuilder
impl UnwindSafe for SuggestInputBuilder
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.