Struct google_api_proto::google::cloud::recaptchaenterprise::v1::WebKeySettings
source · pub struct WebKeySettings {
pub allow_all_domains: bool,
pub allowed_domains: Vec<String>,
pub allow_amp_traffic: bool,
pub integration_type: i32,
pub challenge_security_preference: i32,
}
Expand description
Settings specific to keys that can be used by websites.
Fields§
§allow_all_domains: bool
Optional. If set to true, it means allowed_domains will not be enforced.
allowed_domains: Vec<String>
Optional. Domains or subdomains of websites allowed to use the key. All subdomains of an allowed domain are automatically allowed. A valid domain requires a host and must not include any path, port, query or fragment. Examples: ‘example.com’ or ‘subdomain.example.com’
allow_amp_traffic: bool
Optional. If set to true, the key can be used on AMP (Accelerated Mobile Pages) websites. This is supported only for the SCORE integration type.
integration_type: i32
Required. Describes how this key is integrated with the website.
challenge_security_preference: i32
Optional. Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX and INVISIBLE.
Implementations§
source§impl WebKeySettings
impl WebKeySettings
sourcepub fn integration_type(&self) -> IntegrationType
pub fn integration_type(&self) -> IntegrationType
Returns the enum value of integration_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_integration_type(&mut self, value: IntegrationType)
pub fn set_integration_type(&mut self, value: IntegrationType)
Sets integration_type
to the provided enum value.
sourcepub fn challenge_security_preference(&self) -> ChallengeSecurityPreference
pub fn challenge_security_preference(&self) -> ChallengeSecurityPreference
Returns the enum value of challenge_security_preference
, or the default if the field is set to an invalid enum value.
sourcepub fn set_challenge_security_preference(
&mut self,
value: ChallengeSecurityPreference,
)
pub fn set_challenge_security_preference( &mut self, value: ChallengeSecurityPreference, )
Sets challenge_security_preference
to the provided enum value.
Trait Implementations§
source§impl Clone for WebKeySettings
impl Clone for WebKeySettings
source§fn clone(&self) -> WebKeySettings
fn clone(&self) -> WebKeySettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WebKeySettings
impl Debug for WebKeySettings
source§impl Default for WebKeySettings
impl Default for WebKeySettings
source§impl Message for WebKeySettings
impl Message for WebKeySettings
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for WebKeySettings
impl PartialEq for WebKeySettings
source§fn eq(&self, other: &WebKeySettings) -> bool
fn eq(&self, other: &WebKeySettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WebKeySettings
Auto Trait Implementations§
impl Freeze for WebKeySettings
impl RefUnwindSafe for WebKeySettings
impl Send for WebKeySettings
impl Sync for WebKeySettings
impl Unpin for WebKeySettings
impl UnwindSafe for WebKeySettings
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request