#[non_exhaustive]pub struct SecurityPolicyRuleMatcherExprOptions {
pub recaptcha_options: Option<SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions>,
/* private fields */
}Available on crate features
organization-security-policies or region-security-policies or security-policies only.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.recaptcha_options: Option<SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions>reCAPTCHA configuration options to be applied for the rule. If the rule does not evaluate reCAPTCHA tokens, this field has no effect.
Implementations§
Source§impl SecurityPolicyRuleMatcherExprOptions
impl SecurityPolicyRuleMatcherExprOptions
pub fn new() -> Self
Sourcepub fn set_recaptcha_options<T>(self, v: T) -> Self
pub fn set_recaptcha_options<T>(self, v: T) -> Self
Sets the value of recaptcha_options.
§Example
ⓘ
use google_cloud_compute_v1::model::SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions;
let x = SecurityPolicyRuleMatcherExprOptions::new().set_recaptcha_options(SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions::default()/* use setters */);Sourcepub fn set_or_clear_recaptcha_options<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_recaptcha_options<T>(self, v: Option<T>) -> Self
Sets or clears the value of recaptcha_options.
§Example
ⓘ
use google_cloud_compute_v1::model::SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions;
let x = SecurityPolicyRuleMatcherExprOptions::new().set_or_clear_recaptcha_options(Some(SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions::default()/* use setters */));
let x = SecurityPolicyRuleMatcherExprOptions::new().set_or_clear_recaptcha_options(None::<SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions>);Trait Implementations§
Source§impl Clone for SecurityPolicyRuleMatcherExprOptions
impl Clone for SecurityPolicyRuleMatcherExprOptions
Source§fn clone(&self) -> SecurityPolicyRuleMatcherExprOptions
fn clone(&self) -> SecurityPolicyRuleMatcherExprOptions
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 Default for SecurityPolicyRuleMatcherExprOptions
impl Default for SecurityPolicyRuleMatcherExprOptions
Source§fn default() -> SecurityPolicyRuleMatcherExprOptions
fn default() -> SecurityPolicyRuleMatcherExprOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyRuleMatcherExprOptions
impl PartialEq for SecurityPolicyRuleMatcherExprOptions
Source§fn eq(&self, other: &SecurityPolicyRuleMatcherExprOptions) -> bool
fn eq(&self, other: &SecurityPolicyRuleMatcherExprOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyRuleMatcherExprOptions
Auto Trait Implementations§
impl Freeze for SecurityPolicyRuleMatcherExprOptions
impl RefUnwindSafe for SecurityPolicyRuleMatcherExprOptions
impl Send for SecurityPolicyRuleMatcherExprOptions
impl Sync for SecurityPolicyRuleMatcherExprOptions
impl Unpin for SecurityPolicyRuleMatcherExprOptions
impl UnwindSafe for SecurityPolicyRuleMatcherExprOptions
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