#[non_exhaustive]pub struct UpdateAppProfileRequest {
pub app_profile: Option<AppProfile>,
pub update_mask: Option<FieldMask>,
pub ignore_warnings: bool,
/* private fields */
}Expand description
Request message for BigtableInstanceAdmin.UpdateAppProfile.
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.app_profile: Option<AppProfile>Required. The app profile which will (partially) replace the current value.
update_mask: Option<FieldMask>Required. The subset of app profile fields which should be replaced. If unset, all fields will be replaced.
ignore_warnings: boolIf true, ignore safety checks when updating the app profile.
Implementations§
Source§impl UpdateAppProfileRequest
impl UpdateAppProfileRequest
pub fn new() -> Self
Sourcepub fn set_app_profile<T>(self, v: T) -> Selfwhere
T: Into<AppProfile>,
pub fn set_app_profile<T>(self, v: T) -> Selfwhere
T: Into<AppProfile>,
Sets the value of app_profile.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::AppProfile;
let x = UpdateAppProfileRequest::new().set_app_profile(AppProfile::default()/* use setters */);Sourcepub fn set_or_clear_app_profile<T>(self, v: Option<T>) -> Selfwhere
T: Into<AppProfile>,
pub fn set_or_clear_app_profile<T>(self, v: Option<T>) -> Selfwhere
T: Into<AppProfile>,
Sets or clears the value of app_profile.
§Example
ⓘ
use google_cloud_bigtable_admin_v2::model::AppProfile;
let x = UpdateAppProfileRequest::new().set_or_clear_app_profile(Some(AppProfile::default()/* use setters */));
let x = UpdateAppProfileRequest::new().set_or_clear_app_profile(None::<AppProfile>);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 = UpdateAppProfileRequest::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 = UpdateAppProfileRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateAppProfileRequest::new().set_or_clear_update_mask(None::<FieldMask>);Sourcepub fn set_ignore_warnings<T: Into<bool>>(self, v: T) -> Self
pub fn set_ignore_warnings<T: Into<bool>>(self, v: T) -> Self
Sets the value of ignore_warnings.
§Example
ⓘ
let x = UpdateAppProfileRequest::new().set_ignore_warnings(true);Trait Implementations§
Source§impl Clone for UpdateAppProfileRequest
impl Clone for UpdateAppProfileRequest
Source§fn clone(&self) -> UpdateAppProfileRequest
fn clone(&self) -> UpdateAppProfileRequest
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 UpdateAppProfileRequest
impl Debug for UpdateAppProfileRequest
Source§impl Default for UpdateAppProfileRequest
impl Default for UpdateAppProfileRequest
Source§fn default() -> UpdateAppProfileRequest
fn default() -> UpdateAppProfileRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateAppProfileRequest
impl Message for UpdateAppProfileRequest
Source§impl PartialEq for UpdateAppProfileRequest
impl PartialEq for UpdateAppProfileRequest
impl StructuralPartialEq for UpdateAppProfileRequest
Auto Trait Implementations§
impl Freeze for UpdateAppProfileRequest
impl RefUnwindSafe for UpdateAppProfileRequest
impl Send for UpdateAppProfileRequest
impl Sync for UpdateAppProfileRequest
impl Unpin for UpdateAppProfileRequest
impl UnwindSafe for UpdateAppProfileRequest
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