#[non_exhaustive]pub struct SearchConfig {
pub boost_specs: Vec<BoostSpecs>,
pub filter_specs: Vec<FilterSpecs>,
/* private fields */
}Available on crate feature
conversations only.Expand description
Configuration specific to search queries with data stores.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.boost_specs: Vec<BoostSpecs>Optional. Boost specifications for data stores.
Maps from datastore name to their boost configuration. Do not specify more than one BoostSpecs for each datastore name. If multiple BoostSpecs are provided for the same datastore name, the behavior is undefined.
filter_specs: Vec<FilterSpecs>Optional. Filter specification for data store queries.
TMaps from datastore name to the filter expression for that datastore. Do not specify more than one FilterSpecs for each datastore name. If multiple FilterSpecs are provided for the same datastore name, the behavior is undefined.
Implementations§
Source§impl SearchConfig
impl SearchConfig
pub fn new() -> Self
Sourcepub fn set_boost_specs<T, V>(self, v: T) -> Self
pub fn set_boost_specs<T, V>(self, v: T) -> Self
Sets the value of boost_specs.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::search_knowledge_request::search_config::BoostSpecs;
let x = SearchConfig::new()
.set_boost_specs([
BoostSpecs::default()/* use setters */,
BoostSpecs::default()/* use (different) setters */,
]);Sourcepub fn set_filter_specs<T, V>(self, v: T) -> Self
pub fn set_filter_specs<T, V>(self, v: T) -> Self
Sets the value of filter_specs.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::search_knowledge_request::search_config::FilterSpecs;
let x = SearchConfig::new()
.set_filter_specs([
FilterSpecs::default()/* use setters */,
FilterSpecs::default()/* use (different) setters */,
]);Trait Implementations§
Source§impl Clone for SearchConfig
impl Clone for SearchConfig
Source§fn clone(&self) -> SearchConfig
fn clone(&self) -> SearchConfig
Returns a duplicate 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 SearchConfig
impl Debug for SearchConfig
Source§impl Default for SearchConfig
impl Default for SearchConfig
Source§fn default() -> SearchConfig
fn default() -> SearchConfig
Returns the “default value” for a type. Read more
Source§impl Message for SearchConfig
impl Message for SearchConfig
Source§impl PartialEq for SearchConfig
impl PartialEq for SearchConfig
impl StructuralPartialEq for SearchConfig
Auto Trait Implementations§
impl Freeze for SearchConfig
impl RefUnwindSafe for SearchConfig
impl Send for SearchConfig
impl Sync for SearchConfig
impl Unpin for SearchConfig
impl UnwindSafe for SearchConfig
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