#[non_exhaustive]pub struct UpdateDataPolicyRequest {
pub data_policy: Option<DataPolicy>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Response message for the UpdateDataPolicy 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.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>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.
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.
Trait Implementations§
Source§impl Clone for UpdateDataPolicyRequest
impl Clone for UpdateDataPolicyRequest
Source§fn clone(&self) -> UpdateDataPolicyRequest
fn clone(&self) -> UpdateDataPolicyRequest
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 UpdateDataPolicyRequest
impl Debug for UpdateDataPolicyRequest
Source§impl Default for UpdateDataPolicyRequest
impl Default for UpdateDataPolicyRequest
Source§fn default() -> UpdateDataPolicyRequest
fn default() -> UpdateDataPolicyRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateDataPolicyRequest
impl Message for UpdateDataPolicyRequest
Source§impl PartialEq for UpdateDataPolicyRequest
impl PartialEq for UpdateDataPolicyRequest
impl StructuralPartialEq for UpdateDataPolicyRequest
Auto Trait Implementations§
impl Freeze for UpdateDataPolicyRequest
impl RefUnwindSafe for UpdateDataPolicyRequest
impl Send for UpdateDataPolicyRequest
impl Sync for UpdateDataPolicyRequest
impl Unpin for UpdateDataPolicyRequest
impl UnwindSafe for UpdateDataPolicyRequest
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