Enum google_api_proto::google::cloud::recaptchaenterprise::v1beta1::assessment::ClassificationReason
source · #[repr(i32)]pub enum ClassificationReason {
Unspecified = 0,
Automation = 1,
UnexpectedEnvironment = 2,
TooMuchTraffic = 3,
UnexpectedUsagePatterns = 4,
LowConfidenceScore = 5,
SuspectedCarding = 6,
SuspectedChargeback = 7,
}
Expand description
Reasons contributing to the risk analysis verdict.
Variants§
Unspecified = 0
Default unspecified type.
Automation = 1
Interactions matched the behavior of an automated agent.
UnexpectedEnvironment = 2
The event originated from an illegitimate environment.
TooMuchTraffic = 3
Traffic volume from the event source is higher than normal.
UnexpectedUsagePatterns = 4
Interactions with the site were significantly different than expected patterns.
LowConfidenceScore = 5
Too little traffic has been received from this site thus far to generate quality risk analysis.
SuspectedCarding = 6
The request matches behavioral characteristics of a carding attack.
SuspectedChargeback = 7
The request matches behavioral characteristics of chargebacks for fraud.
Implementations§
source§impl ClassificationReason
impl ClassificationReason
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ClassificationReason
.
sourcepub fn from_i32(value: i32) -> Option<ClassificationReason>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ClassificationReason>
Converts an i32
to a ClassificationReason
, or None
if value
is not a valid variant.
source§impl ClassificationReason
impl ClassificationReason
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 ClassificationReason
impl Clone for ClassificationReason
source§fn clone(&self) -> ClassificationReason
fn clone(&self) -> ClassificationReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ClassificationReason
impl Debug for ClassificationReason
source§impl Default for ClassificationReason
impl Default for ClassificationReason
source§fn default() -> ClassificationReason
fn default() -> ClassificationReason
source§impl From<ClassificationReason> for i32
impl From<ClassificationReason> for i32
source§fn from(value: ClassificationReason) -> i32
fn from(value: ClassificationReason) -> i32
source§impl Hash for ClassificationReason
impl Hash for ClassificationReason
source§impl Ord for ClassificationReason
impl Ord for ClassificationReason
source§fn cmp(&self, other: &ClassificationReason) -> Ordering
fn cmp(&self, other: &ClassificationReason) -> 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 ClassificationReason
impl PartialEq for ClassificationReason
source§fn eq(&self, other: &ClassificationReason) -> bool
fn eq(&self, other: &ClassificationReason) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ClassificationReason
impl PartialOrd for ClassificationReason
source§fn partial_cmp(&self, other: &ClassificationReason) -> Option<Ordering>
fn partial_cmp(&self, other: &ClassificationReason) -> 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 ClassificationReason
impl TryFrom<i32> for ClassificationReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ClassificationReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<ClassificationReason, UnknownEnumValue>
impl Copy for ClassificationReason
impl Eq for ClassificationReason
impl StructuralPartialEq for ClassificationReason
Auto Trait Implementations§
impl Freeze for ClassificationReason
impl RefUnwindSafe for ClassificationReason
impl Send for ClassificationReason
impl Sync for ClassificationReason
impl Unpin for ClassificationReason
impl UnwindSafe for ClassificationReason
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