#[non_exhaustive]pub struct CreateInstanceRequest {
pub parent: String,
pub instance_id: String,
pub instance: Option<Instance>,
pub clusters: HashMap<String, Cluster>,
/* private fields */
}Expand description
Request message for BigtableInstanceAdmin.CreateInstance.
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 project in which to create the new
instance. Values are of the form projects/{project}.
instance_id: StringRequired. The ID to be used when referring to the new instance within its
project, e.g., just myinstance rather than
projects/myproject/instances/myinstance.
instance: Option<Instance>Required. The instance to create.
Fields marked OutputOnly must be left blank.
clusters: HashMap<String, Cluster>Required. The clusters to be created within the instance, mapped by desired
cluster ID, e.g., just mycluster rather than
projects/myproject/instances/myinstance/clusters/mycluster.
Fields marked OutputOnly must be left blank.
Implementations§
Source§impl CreateInstanceRequest
impl CreateInstanceRequest
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_instance_id<T: Into<String>>(self, v: T) -> Self
pub fn set_instance_id<T: Into<String>>(self, v: T) -> Self
Sets the value of instance_id.
§Example
ⓘ
let x = CreateInstanceRequest::new().set_instance_id("example");Sourcepub fn set_instance<T>(self, v: T) -> Self
pub fn set_instance<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_instance<T>(self, v: Option<T>) -> Self
Sourcepub fn set_clusters<T, K, V>(self, v: T) -> Self
pub fn set_clusters<T, K, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for CreateInstanceRequest
impl Clone for CreateInstanceRequest
Source§fn clone(&self) -> CreateInstanceRequest
fn clone(&self) -> CreateInstanceRequest
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 CreateInstanceRequest
impl Debug for CreateInstanceRequest
Source§impl Default for CreateInstanceRequest
impl Default for CreateInstanceRequest
Source§fn default() -> CreateInstanceRequest
fn default() -> CreateInstanceRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateInstanceRequest
impl Message for CreateInstanceRequest
Source§impl PartialEq for CreateInstanceRequest
impl PartialEq for CreateInstanceRequest
impl StructuralPartialEq for CreateInstanceRequest
Auto Trait Implementations§
impl Freeze for CreateInstanceRequest
impl RefUnwindSafe for CreateInstanceRequest
impl Send for CreateInstanceRequest
impl Sync for CreateInstanceRequest
impl Unpin for CreateInstanceRequest
impl UnwindSafe for CreateInstanceRequest
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