#[non_exhaustive]pub struct RemoveRuleRequest {
pub priority: Option<i32>,
pub project: String,
pub security_policy: String,
/* private fields */
}Available on crate feature
security-policies only.Expand description
Synthetic request message for the removeRule() 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.priority: Option<i32>The priority of the rule to remove from the security policy.
project: StringProject ID for this request.
security_policy: StringName of the security policy to update.
Implementations§
Source§impl RemoveRuleRequest
impl RemoveRuleRequest
pub fn new() -> Self
Sourcepub fn set_priority<T>(self, v: T) -> Self
pub fn set_priority<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_priority<T>(self, v: Option<T>) -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_security_policy<T: Into<String>>(self, v: T) -> Self
pub fn set_security_policy<T: Into<String>>(self, v: T) -> Self
Sets the value of security_policy.
§Example
ⓘ
let x = RemoveRuleRequest::new().set_security_policy("example");Trait Implementations§
Source§impl Clone for RemoveRuleRequest
impl Clone for RemoveRuleRequest
Source§fn clone(&self) -> RemoveRuleRequest
fn clone(&self) -> RemoveRuleRequest
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 RemoveRuleRequest
impl Debug for RemoveRuleRequest
Source§impl Default for RemoveRuleRequest
impl Default for RemoveRuleRequest
Source§fn default() -> RemoveRuleRequest
fn default() -> RemoveRuleRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for RemoveRuleRequest
impl PartialEq for RemoveRuleRequest
impl StructuralPartialEq for RemoveRuleRequest
Auto Trait Implementations§
impl Freeze for RemoveRuleRequest
impl RefUnwindSafe for RemoveRuleRequest
impl Send for RemoveRuleRequest
impl Sync for RemoveRuleRequest
impl Unpin for RemoveRuleRequest
impl UnwindSafe for RemoveRuleRequest
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