#[non_exhaustive]pub struct UpdateDataPolicyRequest {
pub data_policy: Option<DataPolicy>,
pub update_mask: Option<FieldMask>,
pub allow_missing: bool,
/* private fields */
}Expand description
Request message for the UpdateDataPolicy method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_policy: Option<DataPolicy>Required. Update the data policy’s metadata.
The target data policy is determined by the name field.
Other fields are updated to the specified values based on the field masks.
update_mask: Option<FieldMask>Optional. The update mask applies to the resource. For the FieldMask
definition, see
https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
If not set, defaults to all of the fields that are allowed to update.
Updates to the name and dataPolicyId fields are not allowed.
allow_missing: boolOptional. If set to true, and the data policy is not found, a new data policy will be created. In this situation, update_mask is ignored.
Implementations§
Source§impl UpdateDataPolicyRequest
impl UpdateDataPolicyRequest
pub fn new() -> Self
Sourcepub fn set_data_policy<T>(self, v: T) -> Selfwhere
T: Into<DataPolicy>,
pub fn set_data_policy<T>(self, v: T) -> Selfwhere
T: Into<DataPolicy>,
Sets the value of data_policy.
Sourcepub fn set_or_clear_data_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataPolicy>,
pub fn set_or_clear_data_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataPolicy>,
Sets or clears the value of data_policy.
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Sourcepub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_missing.
Trait Implementations§
Source§impl Clone for UpdateDataPolicyRequest
impl Clone for UpdateDataPolicyRequest
Source§fn clone(&self) -> UpdateDataPolicyRequest
fn clone(&self) -> UpdateDataPolicyRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more