#[non_exhaustive]pub struct GenericConfig {
pub content_search_spec: Option<ContentSearchSpec>,
/* private fields */
}Available on crate feature
serving-config-service only.Expand description
Specifies the configurations needed for Generic Discovery.Currently we support:
content_search_spec: configuration for generic content search.
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.content_search_spec: Option<ContentSearchSpec>Specifies the expected behavior of content search. Only valid for content-search enabled data store.
Implementations§
Source§impl GenericConfig
impl GenericConfig
pub fn new() -> Self
Sourcepub fn set_content_search_spec<T>(self, v: T) -> Selfwhere
T: Into<ContentSearchSpec>,
pub fn set_content_search_spec<T>(self, v: T) -> Selfwhere
T: Into<ContentSearchSpec>,
Sets the value of content_search_spec.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::search_request::ContentSearchSpec;
let x = GenericConfig::new().set_content_search_spec(ContentSearchSpec::default()/* use setters */);Sourcepub fn set_or_clear_content_search_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContentSearchSpec>,
pub fn set_or_clear_content_search_spec<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContentSearchSpec>,
Sets or clears the value of content_search_spec.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::search_request::ContentSearchSpec;
let x = GenericConfig::new().set_or_clear_content_search_spec(Some(ContentSearchSpec::default()/* use setters */));
let x = GenericConfig::new().set_or_clear_content_search_spec(None::<ContentSearchSpec>);Trait Implementations§
Source§impl Clone for GenericConfig
impl Clone for GenericConfig
Source§fn clone(&self) -> GenericConfig
fn clone(&self) -> GenericConfig
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 GenericConfig
impl Debug for GenericConfig
Source§impl Default for GenericConfig
impl Default for GenericConfig
Source§fn default() -> GenericConfig
fn default() -> GenericConfig
Returns the “default value” for a type. Read more
Source§impl Message for GenericConfig
impl Message for GenericConfig
Source§impl PartialEq for GenericConfig
impl PartialEq for GenericConfig
impl StructuralPartialEq for GenericConfig
Auto Trait Implementations§
impl Freeze for GenericConfig
impl RefUnwindSafe for GenericConfig
impl Send for GenericConfig
impl Sync for GenericConfig
impl Unpin for GenericConfig
impl UnwindSafe for GenericConfig
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