#[non_exhaustive]pub struct TargetPoolsAddInstanceRequest {
pub instances: Vec<InstanceReference>,
/* private fields */
}Available on crate feature
target-pools only.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.instances: Vec<InstanceReference>A full or partial URL to an instance to add to this target pool. This can be a full or partial URL. For example, the following are valid URLs:
- https://www.googleapis.com/compute/v1/projects/project-id/zones/zone/instances/instance-name
- projects/project-id/zones/zone/instances/instance-name
- zones/zone/instances/instance-name
Implementations§
Source§impl TargetPoolsAddInstanceRequest
impl TargetPoolsAddInstanceRequest
pub fn new() -> Self
Sourcepub fn set_instances<T, V>(self, v: T) -> Self
pub fn set_instances<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for TargetPoolsAddInstanceRequest
impl Clone for TargetPoolsAddInstanceRequest
Source§fn clone(&self) -> TargetPoolsAddInstanceRequest
fn clone(&self) -> TargetPoolsAddInstanceRequest
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 TargetPoolsAddInstanceRequest
impl Default for TargetPoolsAddInstanceRequest
Source§fn default() -> TargetPoolsAddInstanceRequest
fn default() -> TargetPoolsAddInstanceRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for TargetPoolsAddInstanceRequest
impl PartialEq for TargetPoolsAddInstanceRequest
Source§fn eq(&self, other: &TargetPoolsAddInstanceRequest) -> bool
fn eq(&self, other: &TargetPoolsAddInstanceRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TargetPoolsAddInstanceRequest
Auto Trait Implementations§
impl Freeze for TargetPoolsAddInstanceRequest
impl RefUnwindSafe for TargetPoolsAddInstanceRequest
impl Send for TargetPoolsAddInstanceRequest
impl Sync for TargetPoolsAddInstanceRequest
impl Unpin for TargetPoolsAddInstanceRequest
impl UnwindSafe for TargetPoolsAddInstanceRequest
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