#[non_exhaustive]pub struct GenerativeQuestionsFeatureConfig {
pub catalog: String,
pub feature_enabled: bool,
pub minimum_products: i32,
/* private fields */
}Expand description
Configuration for overall generative question feature state.
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.catalog: StringRequired. Resource name of the affected catalog. Format: projects/{project}/locations/{location}/catalogs/{catalog}
feature_enabled: boolOptional. Determines whether questions will be used at serving time. Note: This feature cannot be enabled until initial data requirements are satisfied.
minimum_products: i32Optional. Minimum number of products in the response to trigger follow-up questions. Value must be 0 or positive.
Implementations§
Source§impl GenerativeQuestionsFeatureConfig
impl GenerativeQuestionsFeatureConfig
pub fn new() -> Self
Sourcepub fn set_catalog<T: Into<String>>(self, v: T) -> Self
pub fn set_catalog<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_feature_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_feature_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of feature_enabled.
§Example
ⓘ
let x = GenerativeQuestionsFeatureConfig::new().set_feature_enabled(true);Sourcepub fn set_minimum_products<T: Into<i32>>(self, v: T) -> Self
pub fn set_minimum_products<T: Into<i32>>(self, v: T) -> Self
Sets the value of minimum_products.
§Example
ⓘ
let x = GenerativeQuestionsFeatureConfig::new().set_minimum_products(42);Trait Implementations§
Source§impl Clone for GenerativeQuestionsFeatureConfig
impl Clone for GenerativeQuestionsFeatureConfig
Source§fn clone(&self) -> GenerativeQuestionsFeatureConfig
fn clone(&self) -> GenerativeQuestionsFeatureConfig
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 Default for GenerativeQuestionsFeatureConfig
impl Default for GenerativeQuestionsFeatureConfig
Source§fn default() -> GenerativeQuestionsFeatureConfig
fn default() -> GenerativeQuestionsFeatureConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for GenerativeQuestionsFeatureConfig
impl PartialEq for GenerativeQuestionsFeatureConfig
Source§fn eq(&self, other: &GenerativeQuestionsFeatureConfig) -> bool
fn eq(&self, other: &GenerativeQuestionsFeatureConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GenerativeQuestionsFeatureConfig
Auto Trait Implementations§
impl Freeze for GenerativeQuestionsFeatureConfig
impl RefUnwindSafe for GenerativeQuestionsFeatureConfig
impl Send for GenerativeQuestionsFeatureConfig
impl Sync for GenerativeQuestionsFeatureConfig
impl Unpin for GenerativeQuestionsFeatureConfig
impl UnwindSafe for GenerativeQuestionsFeatureConfig
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