#[non_exhaustive]pub struct UpdateIngressRuleRequest {
pub name: String,
pub rule: Option<FirewallRule>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
Request message for Firewall.UpdateIngressRule.
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: StringName of the Firewall resource to update.
Example: apps/myapp/firewall/ingressRules/100.
rule: Option<FirewallRule>A FirewallRule containing the updated resource
update_mask: Option<FieldMask>Standard field mask for the set of fields to be updated.
Implementations§
Source§impl UpdateIngressRuleRequest
impl UpdateIngressRuleRequest
pub fn new() -> Self
Sourcepub fn set_rule<T>(self, v: T) -> Selfwhere
T: Into<FirewallRule>,
pub fn set_rule<T>(self, v: T) -> Selfwhere
T: Into<FirewallRule>,
Sets the value of rule.
Sourcepub fn set_or_clear_rule<T>(self, v: Option<T>) -> Selfwhere
T: Into<FirewallRule>,
pub fn set_or_clear_rule<T>(self, v: Option<T>) -> Selfwhere
T: Into<FirewallRule>,
Sets or clears the value of rule.
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 UpdateIngressRuleRequest
impl Clone for UpdateIngressRuleRequest
Source§fn clone(&self) -> UpdateIngressRuleRequest
fn clone(&self) -> UpdateIngressRuleRequest
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 UpdateIngressRuleRequest
impl Debug for UpdateIngressRuleRequest
Source§impl Default for UpdateIngressRuleRequest
impl Default for UpdateIngressRuleRequest
Source§fn default() -> UpdateIngressRuleRequest
fn default() -> UpdateIngressRuleRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateIngressRuleRequest
impl Message for UpdateIngressRuleRequest
Source§impl PartialEq for UpdateIngressRuleRequest
impl PartialEq for UpdateIngressRuleRequest
impl StructuralPartialEq for UpdateIngressRuleRequest
Auto Trait Implementations§
impl Freeze for UpdateIngressRuleRequest
impl RefUnwindSafe for UpdateIngressRuleRequest
impl Send for UpdateIngressRuleRequest
impl Sync for UpdateIngressRuleRequest
impl Unpin for UpdateIngressRuleRequest
impl UnwindSafe for UpdateIngressRuleRequest
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