pub struct SearchKnowledge(/* private fields */);conversations only.Expand description
The request builder for Conversations::search_knowledge calls.
§Example
use builder::conversations::SearchKnowledge;
let builder = prepare_request_builder();
let response = builder.send().await?;
fn prepare_request_builder() -> SearchKnowledge {
// ... details omitted ...
}Implementations§
Source§impl SearchKnowledge
impl SearchKnowledge
Sourcepub fn with_request<V: Into<SearchKnowledgeRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<SearchKnowledgeRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<SearchKnowledgeResponse>
pub async fn send(self) -> Result<SearchKnowledgeResponse>
Sends the request.
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
This is a required field for requests.
Sourcepub fn set_query<T>(self, v: T) -> Self
pub fn set_query<T>(self, v: T) -> Self
Sets the value of query.
This is a required field for requests.
Sourcepub fn set_or_clear_query<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_query<T>(self, v: Option<T>) -> Self
Sets or clears the value of query.
This is a required field for requests.
Sourcepub fn set_conversation_profile<T: Into<String>>(self, v: T) -> Self
pub fn set_conversation_profile<T: Into<String>>(self, v: T) -> Self
Sets the value of conversation_profile.
This is a required field for requests.
Sourcepub fn set_session_id<T: Into<String>>(self, v: T) -> Self
pub fn set_session_id<T: Into<String>>(self, v: T) -> Self
Sets the value of session_id.
This is a required field for requests.
Sourcepub fn set_conversation<T: Into<String>>(self, v: T) -> Self
pub fn set_conversation<T: Into<String>>(self, v: T) -> Self
Sets the value of conversation.
Sourcepub fn set_latest_message<T: Into<String>>(self, v: T) -> Self
pub fn set_latest_message<T: Into<String>>(self, v: T) -> Self
Sets the value of latest_message.
Sourcepub fn set_query_source<T: Into<QuerySource>>(self, v: T) -> Self
pub fn set_query_source<T: Into<QuerySource>>(self, v: T) -> Self
Sets the value of query_source.
Sourcepub fn set_end_user_metadata<T>(self, v: T) -> Self
pub fn set_end_user_metadata<T>(self, v: T) -> Self
Sets the value of end_user_metadata.
Sourcepub fn set_or_clear_end_user_metadata<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_end_user_metadata<T>(self, v: Option<T>) -> Self
Sets or clears the value of end_user_metadata.
Sourcepub fn set_search_config<T>(self, v: T) -> Selfwhere
T: Into<SearchConfig>,
pub fn set_search_config<T>(self, v: T) -> Selfwhere
T: Into<SearchConfig>,
Sets the value of search_config.
Sourcepub fn set_or_clear_search_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SearchConfig>,
pub fn set_or_clear_search_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<SearchConfig>,
Sets or clears the value of search_config.
Sourcepub fn set_exact_search<T: Into<bool>>(self, v: T) -> Self
pub fn set_exact_search<T: Into<bool>>(self, v: T) -> Self
Sets the value of exact_search.
Trait Implementations§
Source§impl Clone for SearchKnowledge
impl Clone for SearchKnowledge
Source§fn clone(&self) -> SearchKnowledge
fn clone(&self) -> SearchKnowledge
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SearchKnowledge
impl !RefUnwindSafe for SearchKnowledge
impl Send for SearchKnowledge
impl Sync for SearchKnowledge
impl Unpin for SearchKnowledge
impl !UnwindSafe for SearchKnowledge
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.