#[non_exhaustive]pub struct SearchEngineConfig {
pub search_tier: SearchTier,
pub search_add_ons: Vec<SearchAddOn>,
/* private fields */
}Available on crate feature
engine-service only.Expand description
Configurations for a Search Engine.
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.search_tier: SearchTierThe search feature tier of this engine.
Different tiers might have different pricing. To learn more, check the pricing documentation.
Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
search_add_ons: Vec<SearchAddOn>The add-on that this search engine enables.
Implementations§
Source§impl SearchEngineConfig
impl SearchEngineConfig
pub fn new() -> Self
Sourcepub fn set_search_tier<T: Into<SearchTier>>(self, v: T) -> Self
pub fn set_search_tier<T: Into<SearchTier>>(self, v: T) -> Self
Sets the value of search_tier.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::SearchTier;
let x0 = SearchEngineConfig::new().set_search_tier(SearchTier::Standard);
let x1 = SearchEngineConfig::new().set_search_tier(SearchTier::Enterprise);Sourcepub fn set_search_add_ons<T, V>(self, v: T) -> Self
pub fn set_search_add_ons<T, V>(self, v: T) -> Self
Sets the value of search_add_ons.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::SearchAddOn;
let x = SearchEngineConfig::new().set_search_add_ons([
SearchAddOn::Llm,
]);Trait Implementations§
Source§impl Clone for SearchEngineConfig
impl Clone for SearchEngineConfig
Source§fn clone(&self) -> SearchEngineConfig
fn clone(&self) -> SearchEngineConfig
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 SearchEngineConfig
impl Debug for SearchEngineConfig
Source§impl Default for SearchEngineConfig
impl Default for SearchEngineConfig
Source§fn default() -> SearchEngineConfig
fn default() -> SearchEngineConfig
Returns the “default value” for a type. Read more
Source§impl Message for SearchEngineConfig
impl Message for SearchEngineConfig
Source§impl PartialEq for SearchEngineConfig
impl PartialEq for SearchEngineConfig
impl StructuralPartialEq for SearchEngineConfig
Auto Trait Implementations§
impl Freeze for SearchEngineConfig
impl RefUnwindSafe for SearchEngineConfig
impl Send for SearchEngineConfig
impl Sync for SearchEngineConfig
impl Unpin for SearchEngineConfig
impl UnwindSafe for SearchEngineConfig
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