#[non_exhaustive]pub struct CreateIngressRuleRequest {
pub parent: String,
pub rule: Option<FirewallRule>,
/* private fields */
}
Expand description
Request message for Firewall.CreateIngressRule
.
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: String
Name of the parent Firewall collection in which to create a new rule.
Example: apps/myapp/firewall/ingressRules
.
rule: Option<FirewallRule>
A FirewallRule containing the new resource.
The user may optionally provide a position at which the new rule will be placed. The positions define a sequential list starting at 1. If a rule already exists at the given position, rules greater than the provided position will be moved forward by one.
If no position is provided, the server will place the rule as the second to last rule in the sequence before the required default allow-all or deny-all rule.
Implementations§
Source§impl CreateIngressRuleRequest
impl CreateIngressRuleRequest
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
Sets the value of parent.
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.
Trait Implementations§
Source§impl Clone for CreateIngressRuleRequest
impl Clone for CreateIngressRuleRequest
Source§fn clone(&self) -> CreateIngressRuleRequest
fn clone(&self) -> CreateIngressRuleRequest
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 CreateIngressRuleRequest
impl Debug for CreateIngressRuleRequest
Source§impl Default for CreateIngressRuleRequest
impl Default for CreateIngressRuleRequest
Source§fn default() -> CreateIngressRuleRequest
fn default() -> CreateIngressRuleRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateIngressRuleRequest
impl Message for CreateIngressRuleRequest
Source§impl PartialEq for CreateIngressRuleRequest
impl PartialEq for CreateIngressRuleRequest
impl StructuralPartialEq for CreateIngressRuleRequest
Auto Trait Implementations§
impl Freeze for CreateIngressRuleRequest
impl RefUnwindSafe for CreateIngressRuleRequest
impl Send for CreateIngressRuleRequest
impl Sync for CreateIngressRuleRequest
impl Unpin for CreateIngressRuleRequest
impl UnwindSafe for CreateIngressRuleRequest
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