#[non_exhaustive]pub struct CreateAppProfileRequest {
pub parent: String,
pub app_profile_id: String,
pub app_profile: Option<AppProfile>,
pub ignore_warnings: bool,
/* private fields */
}Expand description
Request message for BigtableInstanceAdmin.CreateAppProfile.
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.parent: StringRequired. The unique name of the instance in which to create the new app
profile. Values are of the form projects/{project}/instances/{instance}.
app_profile_id: StringRequired. The ID to be used when referring to the new app profile within
its instance, e.g., just myprofile rather than
projects/myproject/instances/myinstance/appProfiles/myprofile.
app_profile: Option<AppProfile>Required. The app profile to be created.
Fields marked OutputOnly will be ignored.
ignore_warnings: boolIf true, ignore safety checks when creating the app profile.
Implementations§
Source§impl CreateAppProfileRequest
impl CreateAppProfileRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_app_profile_id<T: Into<String>>(self, v: T) -> Self
pub fn set_app_profile_id<T: Into<String>>(self, v: T) -> Self
Sets the value of app_profile_id.
§Example
ⓘ
let x = CreateAppProfileRequest::new().set_app_profile_id("example");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 = CreateAppProfileRequest::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 = CreateAppProfileRequest::new().set_or_clear_app_profile(Some(AppProfile::default()/* use setters */));
let x = CreateAppProfileRequest::new().set_or_clear_app_profile(None::<AppProfile>);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 = CreateAppProfileRequest::new().set_ignore_warnings(true);Trait Implementations§
Source§impl Clone for CreateAppProfileRequest
impl Clone for CreateAppProfileRequest
Source§fn clone(&self) -> CreateAppProfileRequest
fn clone(&self) -> CreateAppProfileRequest
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 CreateAppProfileRequest
impl Debug for CreateAppProfileRequest
Source§impl Default for CreateAppProfileRequest
impl Default for CreateAppProfileRequest
Source§fn default() -> CreateAppProfileRequest
fn default() -> CreateAppProfileRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateAppProfileRequest
impl Message for CreateAppProfileRequest
Source§impl PartialEq for CreateAppProfileRequest
impl PartialEq for CreateAppProfileRequest
impl StructuralPartialEq for CreateAppProfileRequest
Auto Trait Implementations§
impl Freeze for CreateAppProfileRequest
impl RefUnwindSafe for CreateAppProfileRequest
impl Send for CreateAppProfileRequest
impl Sync for CreateAppProfileRequest
impl Unpin for CreateAppProfileRequest
impl UnwindSafe for CreateAppProfileRequest
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