#[non_exhaustive]pub struct CreateFirewallPolicyRequest {
pub parent: String,
pub firewall_policy: Option<FirewallPolicy>,
/* private fields */
}Expand description
The create firewall policy request message.
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 name of the project this policy applies to, in the format
projects/{project}.
firewall_policy: Option<FirewallPolicy>Required. Information to create the policy.
Implementations§
Source§impl CreateFirewallPolicyRequest
impl CreateFirewallPolicyRequest
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_firewall_policy<T>(self, v: T) -> Selfwhere
T: Into<FirewallPolicy>,
pub fn set_firewall_policy<T>(self, v: T) -> Selfwhere
T: Into<FirewallPolicy>,
Sets the value of firewall_policy.
§Example
ⓘ
use google_cloud_recaptchaenterprise_v1::model::FirewallPolicy;
let x = CreateFirewallPolicyRequest::new().set_firewall_policy(FirewallPolicy::default()/* use setters */);Sourcepub fn set_or_clear_firewall_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<FirewallPolicy>,
pub fn set_or_clear_firewall_policy<T>(self, v: Option<T>) -> Selfwhere
T: Into<FirewallPolicy>,
Sets or clears the value of firewall_policy.
§Example
ⓘ
use google_cloud_recaptchaenterprise_v1::model::FirewallPolicy;
let x = CreateFirewallPolicyRequest::new().set_or_clear_firewall_policy(Some(FirewallPolicy::default()/* use setters */));
let x = CreateFirewallPolicyRequest::new().set_or_clear_firewall_policy(None::<FirewallPolicy>);Trait Implementations§
Source§impl Clone for CreateFirewallPolicyRequest
impl Clone for CreateFirewallPolicyRequest
Source§fn clone(&self) -> CreateFirewallPolicyRequest
fn clone(&self) -> CreateFirewallPolicyRequest
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 CreateFirewallPolicyRequest
impl Debug for CreateFirewallPolicyRequest
Source§impl Default for CreateFirewallPolicyRequest
impl Default for CreateFirewallPolicyRequest
Source§fn default() -> CreateFirewallPolicyRequest
fn default() -> CreateFirewallPolicyRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for CreateFirewallPolicyRequest
Auto Trait Implementations§
impl Freeze for CreateFirewallPolicyRequest
impl RefUnwindSafe for CreateFirewallPolicyRequest
impl Send for CreateFirewallPolicyRequest
impl Sync for CreateFirewallPolicyRequest
impl Unpin for CreateFirewallPolicyRequest
impl UnsafeUnpin for CreateFirewallPolicyRequest
impl UnwindSafe for CreateFirewallPolicyRequest
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