#[non_exhaustive]pub struct SecurityPolicyRecaptchaOptionsConfig {
pub redirect_site_key: Option<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.redirect_site_key: Option<String>An optional field to supply a reCAPTCHA site key to be used for all the rules using the redirect action with the type of GOOGLE_RECAPTCHA under the security policy. The specified site key needs to be created from the reCAPTCHA API. The user is responsible for the validity of the specified site key. If not specified, a Google-managed site key is used. This field is only supported in Global Security Policies of type CLOUD_ARMOR.
Implementations§
Source§impl SecurityPolicyRecaptchaOptionsConfig
impl SecurityPolicyRecaptchaOptionsConfig
pub fn new() -> Self
Sourcepub fn set_redirect_site_key<T>(self, v: T) -> Self
pub fn set_redirect_site_key<T>(self, v: T) -> Self
Sets the value of redirect_site_key.
§Example
ⓘ
let x = SecurityPolicyRecaptchaOptionsConfig::new().set_redirect_site_key("example");Sourcepub fn set_or_clear_redirect_site_key<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_redirect_site_key<T>(self, v: Option<T>) -> Self
Sets or clears the value of redirect_site_key.
§Example
ⓘ
let x = SecurityPolicyRecaptchaOptionsConfig::new().set_or_clear_redirect_site_key(Some("example"));
let x = SecurityPolicyRecaptchaOptionsConfig::new().set_or_clear_redirect_site_key(None::<String>);Trait Implementations§
Source§impl Clone for SecurityPolicyRecaptchaOptionsConfig
impl Clone for SecurityPolicyRecaptchaOptionsConfig
Source§fn clone(&self) -> SecurityPolicyRecaptchaOptionsConfig
fn clone(&self) -> SecurityPolicyRecaptchaOptionsConfig
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 SecurityPolicyRecaptchaOptionsConfig
impl Default for SecurityPolicyRecaptchaOptionsConfig
Source§fn default() -> SecurityPolicyRecaptchaOptionsConfig
fn default() -> SecurityPolicyRecaptchaOptionsConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for SecurityPolicyRecaptchaOptionsConfig
impl PartialEq for SecurityPolicyRecaptchaOptionsConfig
Source§fn eq(&self, other: &SecurityPolicyRecaptchaOptionsConfig) -> bool
fn eq(&self, other: &SecurityPolicyRecaptchaOptionsConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SecurityPolicyRecaptchaOptionsConfig
Auto Trait Implementations§
impl Freeze for SecurityPolicyRecaptchaOptionsConfig
impl RefUnwindSafe for SecurityPolicyRecaptchaOptionsConfig
impl Send for SecurityPolicyRecaptchaOptionsConfig
impl Sync for SecurityPolicyRecaptchaOptionsConfig
impl Unpin for SecurityPolicyRecaptchaOptionsConfig
impl UnwindSafe for SecurityPolicyRecaptchaOptionsConfig
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