#[non_exhaustive]pub struct DeleteRuleRequest {
pub name: String,
pub force: bool,
/* private fields */
}Expand description
Request message for the DeleteRule 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.name: StringRequired. The name of the rule to delete. A rule revision timestamp cannot
be specified as part of the name, as deleting specific revisions is not
supported.
Format:
projects/{project}/locations/{location}/instances/{instance}/rules/{rule}
force: boolOptional. If set to true, any retrohunts and any detections associated with the rule will also be deleted. If set to false, the call will only succeed if the rule has no associated retrohunts, including completed retrohunts, and no associated detections. Regardless of this field’s value, the rule deployment associated with this rule will also be deleted.
Implementations§
Trait Implementations§
Source§impl Clone for DeleteRuleRequest
impl Clone for DeleteRuleRequest
Source§fn clone(&self) -> DeleteRuleRequest
fn clone(&self) -> DeleteRuleRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DeleteRuleRequest
impl Debug for DeleteRuleRequest
Source§impl Default for DeleteRuleRequest
impl Default for DeleteRuleRequest
Source§fn default() -> DeleteRuleRequest
fn default() -> DeleteRuleRequest
Returns the “default value” for a type. Read more
Source§impl Message for DeleteRuleRequest
impl Message for DeleteRuleRequest
Source§impl PartialEq for DeleteRuleRequest
impl PartialEq for DeleteRuleRequest
Source§fn eq(&self, other: &DeleteRuleRequest) -> bool
fn eq(&self, other: &DeleteRuleRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DeleteRuleRequest
Auto Trait Implementations§
impl Freeze for DeleteRuleRequest
impl RefUnwindSafe for DeleteRuleRequest
impl Send for DeleteRuleRequest
impl Sync for DeleteRuleRequest
impl Unpin for DeleteRuleRequest
impl UnsafeUnpin for DeleteRuleRequest
impl UnwindSafe for DeleteRuleRequest
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