#[non_exhaustive]pub struct CreateInstanceRequest {
pub parent: String,
pub instance_id: String,
pub instance: Option<Instance>,
/* private fields */
}
Expand description
The request for 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: String
Required. The name of the project in which to create the instance. Values
are of the form projects/<project>
.
instance_id: String
Required. The ID of the instance 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: Option<Instance>
Required. The instance to create. The name may be omitted, but if
specified must be <parent>/instances/<instance_id>
.
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
Sets the value of parent.
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.
Sourcepub fn set_instance<T>(self, v: T) -> Self
pub fn set_instance<T>(self, v: T) -> Self
Sets the value of instance.
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