#[non_exhaustive]pub struct CreateExclusionRequest {
pub parent: String,
pub exclusion: Option<LogExclusion>,
/* private fields */
}Expand description
The parameters to CreateExclusion.
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.parent: StringRequired. The parent resource in which to create the exclusion:
"projects/[PROJECT_ID]"
"organizations/[ORGANIZATION_ID]"
"billingAccounts/[BILLING_ACCOUNT_ID]"
"folders/[FOLDER_ID]"For examples:
"projects/my-logging-project"
"organizations/123456789"
exclusion: Option<LogExclusion>Required. The new exclusion, whose name parameter is an exclusion name
that is not already used in the parent resource.
Implementations§
Source§impl CreateExclusionRequest
impl CreateExclusionRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> 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>,
Trait Implementations§
Source§impl Clone for CreateExclusionRequest
impl Clone for CreateExclusionRequest
Source§fn clone(&self) -> CreateExclusionRequest
fn clone(&self) -> CreateExclusionRequest
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 CreateExclusionRequest
impl Debug for CreateExclusionRequest
Source§impl Default for CreateExclusionRequest
impl Default for CreateExclusionRequest
Source§fn default() -> CreateExclusionRequest
fn default() -> CreateExclusionRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateExclusionRequest
impl Message for CreateExclusionRequest
Source§impl PartialEq for CreateExclusionRequest
impl PartialEq for CreateExclusionRequest
impl StructuralPartialEq for CreateExclusionRequest
Auto Trait Implementations§
impl Freeze for CreateExclusionRequest
impl RefUnwindSafe for CreateExclusionRequest
impl Send for CreateExclusionRequest
impl Sync for CreateExclusionRequest
impl Unpin for CreateExclusionRequest
impl UnwindSafe for CreateExclusionRequest
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