#[non_exhaustive]pub struct UpdateServingConfigRequest {
pub serving_config: Option<ServingConfig>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Available on crate feature
serving-config-service only.Expand description
Request for UpdateServingConfig 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.serving_config: Option<ServingConfig>Required. The ServingConfig to update.
update_mask: Option<FieldMask>Indicates which fields in the provided ServingConfig to update. The following are NOT supported:
If not set, all supported fields are updated.
Implementations§
Source§impl UpdateServingConfigRequest
impl UpdateServingConfigRequest
pub fn new() -> Self
Sourcepub fn set_serving_config<T>(self, v: T) -> Selfwhere
T: Into<ServingConfig>,
pub fn set_serving_config<T>(self, v: T) -> Selfwhere
T: Into<ServingConfig>,
Sets the value of serving_config.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::ServingConfig;
let x = UpdateServingConfigRequest::new().set_serving_config(ServingConfig::default()/* use setters */);Sourcepub fn set_or_clear_serving_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServingConfig>,
pub fn set_or_clear_serving_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<ServingConfig>,
Sets or clears the value of serving_config.
§Example
ⓘ
use google_cloud_discoveryengine_v1::model::ServingConfig;
let x = UpdateServingConfigRequest::new().set_or_clear_serving_config(Some(ServingConfig::default()/* use setters */));
let x = UpdateServingConfigRequest::new().set_or_clear_serving_config(None::<ServingConfig>);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 = UpdateServingConfigRequest::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 = UpdateServingConfigRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateServingConfigRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateServingConfigRequest
impl Clone for UpdateServingConfigRequest
Source§fn clone(&self) -> UpdateServingConfigRequest
fn clone(&self) -> UpdateServingConfigRequest
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 UpdateServingConfigRequest
impl Debug for UpdateServingConfigRequest
Source§impl Default for UpdateServingConfigRequest
impl Default for UpdateServingConfigRequest
Source§fn default() -> UpdateServingConfigRequest
fn default() -> UpdateServingConfigRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateServingConfigRequest
impl Message for UpdateServingConfigRequest
impl StructuralPartialEq for UpdateServingConfigRequest
Auto Trait Implementations§
impl Freeze for UpdateServingConfigRequest
impl RefUnwindSafe for UpdateServingConfigRequest
impl Send for UpdateServingConfigRequest
impl Sync for UpdateServingConfigRequest
impl Unpin for UpdateServingConfigRequest
impl UnwindSafe for UpdateServingConfigRequest
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