#[non_exhaustive]pub struct ModelFeaturesConfig {
pub type_dedicated_config: Option<TypeDedicatedConfig>,
/* private fields */
}Expand description
Additional model features config.
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.type_dedicated_config: Option<TypeDedicatedConfig>Implementations§
Source§impl ModelFeaturesConfig
impl ModelFeaturesConfig
pub fn new() -> Self
Sourcepub fn set_type_dedicated_config<T: Into<Option<TypeDedicatedConfig>>>(
self,
v: T,
) -> Self
pub fn set_type_dedicated_config<T: Into<Option<TypeDedicatedConfig>>>( self, v: T, ) -> Self
Sets the value of type_dedicated_config.
Note that all the setters affecting type_dedicated_config are mutually
exclusive.
§Example
ⓘ
use google_cloud_retail_v2::model::model::FrequentlyBoughtTogetherFeaturesConfig;
let x = ModelFeaturesConfig::new().set_type_dedicated_config(Some(
google_cloud_retail_v2::model::model::model_features_config::TypeDedicatedConfig::FrequentlyBoughtTogetherConfig(FrequentlyBoughtTogetherFeaturesConfig::default().into())));Sourcepub fn frequently_bought_together_config(
&self,
) -> Option<&Box<FrequentlyBoughtTogetherFeaturesConfig>>
pub fn frequently_bought_together_config( &self, ) -> Option<&Box<FrequentlyBoughtTogetherFeaturesConfig>>
The value of type_dedicated_config
if it holds a FrequentlyBoughtTogetherConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_frequently_bought_together_config<T: Into<Box<FrequentlyBoughtTogetherFeaturesConfig>>>(
self,
v: T,
) -> Self
pub fn set_frequently_bought_together_config<T: Into<Box<FrequentlyBoughtTogetherFeaturesConfig>>>( self, v: T, ) -> Self
Sets the value of type_dedicated_config
to hold a FrequentlyBoughtTogetherConfig.
Note that all the setters affecting type_dedicated_config are
mutually exclusive.
§Example
ⓘ
use google_cloud_retail_v2::model::model::FrequentlyBoughtTogetherFeaturesConfig;
let x = ModelFeaturesConfig::new().set_frequently_bought_together_config(FrequentlyBoughtTogetherFeaturesConfig::default()/* use setters */);
assert!(x.frequently_bought_together_config().is_some());Trait Implementations§
Source§impl Clone for ModelFeaturesConfig
impl Clone for ModelFeaturesConfig
Source§fn clone(&self) -> ModelFeaturesConfig
fn clone(&self) -> ModelFeaturesConfig
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 ModelFeaturesConfig
impl Debug for ModelFeaturesConfig
Source§impl Default for ModelFeaturesConfig
impl Default for ModelFeaturesConfig
Source§fn default() -> ModelFeaturesConfig
fn default() -> ModelFeaturesConfig
Returns the “default value” for a type. Read more
Source§impl Message for ModelFeaturesConfig
impl Message for ModelFeaturesConfig
Source§impl PartialEq for ModelFeaturesConfig
impl PartialEq for ModelFeaturesConfig
impl StructuralPartialEq for ModelFeaturesConfig
Auto Trait Implementations§
impl Freeze for ModelFeaturesConfig
impl RefUnwindSafe for ModelFeaturesConfig
impl Send for ModelFeaturesConfig
impl Sync for ModelFeaturesConfig
impl Unpin for ModelFeaturesConfig
impl UnwindSafe for ModelFeaturesConfig
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