#[non_exhaustive]pub struct UpdateExclusionRequest {
pub name: String,
pub exclusion: Option<LogExclusion>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
The parameters to UpdateExclusion.
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.name: StringRequired. The resource name of the exclusion to update:
"projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
"organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
"folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"For example:
"projects/my-project/exclusions/my-exclusion"
exclusion: Option<LogExclusion>Required. New values for the existing exclusion. Only the fields specified
in update_mask are relevant.
update_mask: Option<FieldMask>Required. A non-empty list of fields to change in the existing exclusion.
New values for the fields are taken from the corresponding fields in the
LogExclusion included in this request.
Fields not mentioned in update_mask are not changed and are ignored in
the request.
For example, to change the filter and description of an exclusion,
specify an update_mask of "filter,description".
Implementations§
Source§impl UpdateExclusionRequest
impl UpdateExclusionRequest
pub fn new() -> Self
Sourcepub fn set_exclusion<T>(self, v: T) -> Selfwhere
T: Into<LogExclusion>,
pub fn set_exclusion<T>(self, v: T) -> Selfwhere
T: Into<LogExclusion>,
Sets the value of exclusion.
Sourcepub fn set_or_clear_exclusion<T>(self, v: Option<T>) -> Selfwhere
T: Into<LogExclusion>,
pub fn set_or_clear_exclusion<T>(self, v: Option<T>) -> Selfwhere
T: Into<LogExclusion>,
Sets or clears the value of exclusion.
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 UpdateExclusionRequest
impl Clone for UpdateExclusionRequest
Source§fn clone(&self) -> UpdateExclusionRequest
fn clone(&self) -> UpdateExclusionRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more