#[non_exhaustive]pub struct CreateInstancePartitionRequest {
pub parent: String,
pub instance_partition_id: String,
pub instance_partition: Option<InstancePartition>,
/* private fields */
}
Expand description
The request for CreateInstancePartition.
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: String
Required. The name of the instance in which to create the instance
partition. Values are of the form
projects/<project>/instances/<instance>
.
instance_partition_id: String
Required. The ID of the instance partition to create. Valid identifiers are
of the form [a-z][-a-z0-9]*[a-z0-9]
and must be between 2 and 64
characters in length.
instance_partition: Option<InstancePartition>
Required. The instance partition to create. The instance_partition.name may
be omitted, but if specified must be
<parent>/instancePartitions/<instance_partition_id>
.
Implementations§
Source§impl CreateInstancePartitionRequest
impl CreateInstancePartitionRequest
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
Sets the value of parent.
Sourcepub fn set_instance_partition_id<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_partition_id<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_partition_id.
Sourcepub fn set_instance_partition<T>(self, v: T) -> Selfwhere
T: Into<InstancePartition>,
pub fn set_instance_partition<T>(self, v: T) -> Selfwhere
T: Into<InstancePartition>,
Sets the value of instance_partition.
Sourcepub fn set_or_clear_instance_partition<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstancePartition>,
pub fn set_or_clear_instance_partition<T>(self, v: Option<T>) -> Selfwhere
T: Into<InstancePartition>,
Sets or clears the value of instance_partition.
Trait Implementations§
Source§impl Clone for CreateInstancePartitionRequest
impl Clone for CreateInstancePartitionRequest
Source§fn clone(&self) -> CreateInstancePartitionRequest
fn clone(&self) -> CreateInstancePartitionRequest
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 CreateInstancePartitionRequest
impl Default for CreateInstancePartitionRequest
Source§fn default() -> CreateInstancePartitionRequest
fn default() -> CreateInstancePartitionRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateInstancePartitionRequest
impl PartialEq for CreateInstancePartitionRequest
Source§fn eq(&self, other: &CreateInstancePartitionRequest) -> bool
fn eq(&self, other: &CreateInstancePartitionRequest) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateInstancePartitionRequest
Auto Trait Implementations§
impl Freeze for CreateInstancePartitionRequest
impl RefUnwindSafe for CreateInstancePartitionRequest
impl Send for CreateInstancePartitionRequest
impl Sync for CreateInstancePartitionRequest
impl Unpin for CreateInstancePartitionRequest
impl UnwindSafe for CreateInstancePartitionRequest
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