#[non_exhaustive]pub struct SuggestionMatchBuilder { /* private fields */ }
Expand description
A builder for SuggestionMatch
.
Implementations§
source§impl SuggestionMatchBuilder
impl SuggestionMatchBuilder
sourcepub fn suggestion(self, input: impl Into<String>) -> Self
pub fn suggestion(self, input: impl Into<String>) -> Self
The string that matches the query string specified in the SuggestRequest
.
sourcepub fn set_suggestion(self, input: Option<String>) -> Self
pub fn set_suggestion(self, input: Option<String>) -> Self
The string that matches the query string specified in the SuggestRequest
.
sourcepub fn get_suggestion(&self) -> &Option<String>
pub fn get_suggestion(&self) -> &Option<String>
The string that matches the query string specified in the SuggestRequest
.
sourcepub fn build(self) -> SuggestionMatch
pub fn build(self) -> SuggestionMatch
Consumes the builder and constructs a SuggestionMatch
.
Trait Implementations§
source§impl Clone for SuggestionMatchBuilder
impl Clone for SuggestionMatchBuilder
source§fn clone(&self) -> SuggestionMatchBuilder
fn clone(&self) -> SuggestionMatchBuilder
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 SuggestionMatchBuilder
impl Debug for SuggestionMatchBuilder
source§impl Default for SuggestionMatchBuilder
impl Default for SuggestionMatchBuilder
source§fn default() -> SuggestionMatchBuilder
fn default() -> SuggestionMatchBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SuggestionMatchBuilder
impl PartialEq for SuggestionMatchBuilder
source§fn eq(&self, other: &SuggestionMatchBuilder) -> bool
fn eq(&self, other: &SuggestionMatchBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SuggestionMatchBuilder
Auto Trait Implementations§
impl Freeze for SuggestionMatchBuilder
impl RefUnwindSafe for SuggestionMatchBuilder
impl Send for SuggestionMatchBuilder
impl Sync for SuggestionMatchBuilder
impl Unpin for SuggestionMatchBuilder
impl UnwindSafe for SuggestionMatchBuilder
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.