#[non_exhaustive]pub struct SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions {
pub action_token_site_keys: Vec<String>,
pub session_token_site_keys: Vec<String>,
/* 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.action_token_site_keys: Vec<String>A list of site keys to be used during the validation of reCAPTCHA action-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
session_token_site_keys: Vec<String>A list of site keys to be used during the validation of reCAPTCHA session-tokens. The provided site keys need to be created from reCAPTCHA API under the same project where the security policy is created.
Implementations§
Source§impl SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
pub fn new() -> Self
Sourcepub fn set_action_token_site_keys<T, V>(self, v: T) -> Self
pub fn set_action_token_site_keys<T, V>(self, v: T) -> Self
Sets the value of action_token_site_keys.
§Example
ⓘ
let x = SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions::new().set_action_token_site_keys(["a", "b", "c"]);Sourcepub fn set_session_token_site_keys<T, V>(self, v: T) -> Self
pub fn set_session_token_site_keys<T, V>(self, v: T) -> Self
Sets the value of session_token_site_keys.
§Example
ⓘ
let x = SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions::new().set_session_token_site_keys(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl Clone for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
Source§fn clone(&self) -> SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
fn clone(&self) -> SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
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 SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl Default for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
Source§fn default() -> SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
fn default() -> SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl PartialEq for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
Source§fn eq(
&self,
other: &SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions,
) -> bool
fn eq( &self, other: &SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
Auto Trait Implementations§
impl Freeze for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl RefUnwindSafe for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl Send for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl Sync for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl Unpin for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
impl UnwindSafe for SecurityPolicyRuleMatcherExprOptionsRecaptchaOptions
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