[][src]Struct gcp_client::google::cloud::recaptchaenterprise::v1beta1::WebKeySettings

pub struct WebKeySettings {
    pub enforce_allowed_domains: bool,
    pub allowed_domains: Vec<String>,
    pub allow_amp_traffic: bool,
    pub integration_type: i32,
    pub challenge_security_preference: i32,
}

Settings specific to keys that can be used by websites.

Fields

enforce_allowed_domains: bool

Whether allowed_domains is enforced or not.

allowed_domains: Vec<String>

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

Whether this key can be used on AMP (Accelerated Mobile Pages) websites.

integration_type: i32

Required. Describes how this key is integrated with the website.

challenge_security_preference: i32

Settings for the frequency and difficulty at which this key triggers captcha challenges. This should only be specified for IntegrationTypes CHECKBOX_CHALLENGE and INVISIBLE_CHALLENGE.

Implementations

impl WebKeySettings[src]

pub fn integration_type(&self) -> IntegrationType[src]

Returns the enum value of integration_type, or the default if the field is set to an invalid enum value.

pub fn set_integration_type(&mut self, value: IntegrationType)[src]

Sets integration_type to the provided enum value.

pub fn challenge_security_preference(&self) -> ChallengeSecurityPreference[src]

Returns the enum value of challenge_security_preference, or the default if the field is set to an invalid enum value.

pub fn set_challenge_security_preference(
    &mut self,
    value: ChallengeSecurityPreference
)
[src]

Sets challenge_security_preference to the provided enum value.

Trait Implementations

impl Clone for WebKeySettings[src]

impl Debug for WebKeySettings[src]

impl Default for WebKeySettings[src]

impl Message for WebKeySettings[src]

impl PartialEq<WebKeySettings> for WebKeySettings[src]

impl StructuralPartialEq for WebKeySettings[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]