#[non_exhaustive]pub struct UpdateGenerativeQuestionsFeatureConfigRequest {
pub generative_questions_feature_config: Option<GenerativeQuestionsFeatureConfig>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request for UpdateGenerativeQuestionsFeatureConfig method.
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.generative_questions_feature_config: Option<GenerativeQuestionsFeatureConfig>Required. The configuration managing the feature state.
update_mask: Option<FieldMask>Optional. Indicates which fields in the provided GenerativeQuestionsFeatureConfig to update. If not set or empty, all supported fields are updated.
Implementations§
Source§impl UpdateGenerativeQuestionsFeatureConfigRequest
impl UpdateGenerativeQuestionsFeatureConfigRequest
pub fn new() -> Self
Sourcepub fn set_generative_questions_feature_config<T>(self, v: T) -> Selfwhere
T: Into<GenerativeQuestionsFeatureConfig>,
pub fn set_generative_questions_feature_config<T>(self, v: T) -> Selfwhere
T: Into<GenerativeQuestionsFeatureConfig>,
Sets the value of generative_questions_feature_config.
§Example
ⓘ
use google_cloud_retail_v2::model::GenerativeQuestionsFeatureConfig;
let x = UpdateGenerativeQuestionsFeatureConfigRequest::new().set_generative_questions_feature_config(GenerativeQuestionsFeatureConfig::default()/* use setters */);Sourcepub fn set_or_clear_generative_questions_feature_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<GenerativeQuestionsFeatureConfig>,
pub fn set_or_clear_generative_questions_feature_config<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<GenerativeQuestionsFeatureConfig>,
Sets or clears the value of generative_questions_feature_config.
§Example
ⓘ
use google_cloud_retail_v2::model::GenerativeQuestionsFeatureConfig;
let x = UpdateGenerativeQuestionsFeatureConfigRequest::new().set_or_clear_generative_questions_feature_config(Some(GenerativeQuestionsFeatureConfig::default()/* use setters */));
let x = UpdateGenerativeQuestionsFeatureConfigRequest::new().set_or_clear_generative_questions_feature_config(None::<GenerativeQuestionsFeatureConfig>);Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateGenerativeQuestionsFeatureConfigRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateGenerativeQuestionsFeatureConfigRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateGenerativeQuestionsFeatureConfigRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateGenerativeQuestionsFeatureConfigRequest
impl Clone for UpdateGenerativeQuestionsFeatureConfigRequest
Source§fn clone(&self) -> UpdateGenerativeQuestionsFeatureConfigRequest
fn clone(&self) -> UpdateGenerativeQuestionsFeatureConfigRequest
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 UpdateGenerativeQuestionsFeatureConfigRequest
impl Default for UpdateGenerativeQuestionsFeatureConfigRequest
Source§fn default() -> UpdateGenerativeQuestionsFeatureConfigRequest
fn default() -> UpdateGenerativeQuestionsFeatureConfigRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdateGenerativeQuestionsFeatureConfigRequest
impl PartialEq for UpdateGenerativeQuestionsFeatureConfigRequest
Source§fn eq(&self, other: &UpdateGenerativeQuestionsFeatureConfigRequest) -> bool
fn eq(&self, other: &UpdateGenerativeQuestionsFeatureConfigRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateGenerativeQuestionsFeatureConfigRequest
Auto Trait Implementations§
impl Freeze for UpdateGenerativeQuestionsFeatureConfigRequest
impl RefUnwindSafe for UpdateGenerativeQuestionsFeatureConfigRequest
impl Send for UpdateGenerativeQuestionsFeatureConfigRequest
impl Sync for UpdateGenerativeQuestionsFeatureConfigRequest
impl Unpin for UpdateGenerativeQuestionsFeatureConfigRequest
impl UnwindSafe for UpdateGenerativeQuestionsFeatureConfigRequest
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