#[non_exhaustive]pub struct UpdateDeploymentResourcePoolRequest {
pub deployment_resource_pool: Option<DeploymentResourcePool>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request message for UpdateDeploymentResourcePool method.
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.deployment_resource_pool: Option<DeploymentResourcePool>Required. The DeploymentResourcePool to update.
The DeploymentResourcePool’s name field is used to identify the
DeploymentResourcePool to update.
Format:
projects/{project}/locations/{location}/deploymentResourcePools/{deployment_resource_pool}
update_mask: Option<FieldMask>Required. The list of fields to update.
Implementations§
Source§impl UpdateDeploymentResourcePoolRequest
impl UpdateDeploymentResourcePoolRequest
pub fn new() -> Self
Sourcepub fn set_deployment_resource_pool<T: Into<Option<DeploymentResourcePool>>>(
self,
v: T,
) -> Self
pub fn set_deployment_resource_pool<T: Into<Option<DeploymentResourcePool>>>( self, v: T, ) -> Self
Sets the value of deployment_resource_pool.
Sourcepub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
pub fn set_update_mask<T: Into<Option<FieldMask>>>(self, v: T) -> Self
Sets the value of update_mask.
Trait Implementations§
Source§impl Clone for UpdateDeploymentResourcePoolRequest
impl Clone for UpdateDeploymentResourcePoolRequest
Source§fn clone(&self) -> UpdateDeploymentResourcePoolRequest
fn clone(&self) -> UpdateDeploymentResourcePoolRequest
Returns a copy 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 UpdateDeploymentResourcePoolRequest
impl Default for UpdateDeploymentResourcePoolRequest
Source§fn default() -> UpdateDeploymentResourcePoolRequest
fn default() -> UpdateDeploymentResourcePoolRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateDeploymentResourcePoolRequest
impl<'de> Deserialize<'de> for UpdateDeploymentResourcePoolRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UpdateDeploymentResourcePoolRequest
impl PartialEq for UpdateDeploymentResourcePoolRequest
Source§fn eq(&self, other: &UpdateDeploymentResourcePoolRequest) -> bool
fn eq(&self, other: &UpdateDeploymentResourcePoolRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdateDeploymentResourcePoolRequest
Auto Trait Implementations§
impl Freeze for UpdateDeploymentResourcePoolRequest
impl RefUnwindSafe for UpdateDeploymentResourcePoolRequest
impl Send for UpdateDeploymentResourcePoolRequest
impl Sync for UpdateDeploymentResourcePoolRequest
impl Unpin for UpdateDeploymentResourcePoolRequest
impl UnwindSafe for UpdateDeploymentResourcePoolRequest
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