Enum google_api_proto::google::cloud::recaptchaenterprise::v1::web_key_settings::ChallengeSecurityPreference
source · #[repr(i32)]pub enum ChallengeSecurityPreference {
Unspecified = 0,
Usability = 1,
Balance = 2,
Security = 3,
}
Expand description
Enum that represents the possible challenge frequency and difficulty configurations for a web key.
Variants§
Unspecified = 0
Default type that indicates this enum hasn’t been specified.
Usability = 1
Key tends to show fewer and easier challenges.
Balance = 2
Key tends to show balanced (in amount and difficulty) challenges.
Security = 3
Key tends to show more and harder challenges.
Implementations§
source§impl ChallengeSecurityPreference
impl ChallengeSecurityPreference
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ChallengeSecurityPreference
.
sourcepub fn from_i32(value: i32) -> Option<ChallengeSecurityPreference>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ChallengeSecurityPreference>
Converts an i32
to a ChallengeSecurityPreference
, or None
if value
is not a valid variant.
source§impl ChallengeSecurityPreference
impl ChallengeSecurityPreference
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ChallengeSecurityPreference
impl Clone for ChallengeSecurityPreference
source§fn clone(&self) -> ChallengeSecurityPreference
fn clone(&self) -> ChallengeSecurityPreference
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChallengeSecurityPreference
impl Debug for ChallengeSecurityPreference
source§impl Default for ChallengeSecurityPreference
impl Default for ChallengeSecurityPreference
source§fn default() -> ChallengeSecurityPreference
fn default() -> ChallengeSecurityPreference
source§impl From<ChallengeSecurityPreference> for i32
impl From<ChallengeSecurityPreference> for i32
source§fn from(value: ChallengeSecurityPreference) -> i32
fn from(value: ChallengeSecurityPreference) -> i32
source§impl Hash for ChallengeSecurityPreference
impl Hash for ChallengeSecurityPreference
source§impl Ord for ChallengeSecurityPreference
impl Ord for ChallengeSecurityPreference
source§fn cmp(&self, other: &ChallengeSecurityPreference) -> Ordering
fn cmp(&self, other: &ChallengeSecurityPreference) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ChallengeSecurityPreference
impl PartialEq for ChallengeSecurityPreference
source§fn eq(&self, other: &ChallengeSecurityPreference) -> bool
fn eq(&self, other: &ChallengeSecurityPreference) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChallengeSecurityPreference
impl PartialOrd for ChallengeSecurityPreference
source§fn partial_cmp(&self, other: &ChallengeSecurityPreference) -> Option<Ordering>
fn partial_cmp(&self, other: &ChallengeSecurityPreference) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ChallengeSecurityPreference
impl TryFrom<i32> for ChallengeSecurityPreference
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ChallengeSecurityPreference, UnknownEnumValue>
fn try_from(value: i32) -> Result<ChallengeSecurityPreference, UnknownEnumValue>
impl Copy for ChallengeSecurityPreference
impl Eq for ChallengeSecurityPreference
impl StructuralPartialEq for ChallengeSecurityPreference
Auto Trait Implementations§
impl Freeze for ChallengeSecurityPreference
impl RefUnwindSafe for ChallengeSecurityPreference
impl Send for ChallengeSecurityPreference
impl Sync for ChallengeSecurityPreference
impl Unpin for ChallengeSecurityPreference
impl UnwindSafe for ChallengeSecurityPreference
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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