#[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
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.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>,
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>,
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.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateExclusionRequest::new().set_update_mask(FieldMask::default()/* use setters */);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.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateExclusionRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateExclusionRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateExclusionRequest
impl Clone for UpdateExclusionRequest
Source§fn clone(&self) -> UpdateExclusionRequest
fn clone(&self) -> UpdateExclusionRequest
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 UpdateExclusionRequest
impl Debug for UpdateExclusionRequest
Source§impl Default for UpdateExclusionRequest
impl Default for UpdateExclusionRequest
Source§fn default() -> UpdateExclusionRequest
fn default() -> UpdateExclusionRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateExclusionRequest
impl Message for UpdateExclusionRequest
Source§impl PartialEq for UpdateExclusionRequest
impl PartialEq for UpdateExclusionRequest
impl StructuralPartialEq for UpdateExclusionRequest
Auto Trait Implementations§
impl Freeze for UpdateExclusionRequest
impl RefUnwindSafe for UpdateExclusionRequest
impl Send for UpdateExclusionRequest
impl Sync for UpdateExclusionRequest
impl Unpin for UpdateExclusionRequest
impl UnwindSafe for UpdateExclusionRequest
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