#[repr(i32)]pub enum FraudPrevention {
Unspecified = 0,
Enabled = 1,
Disabled = 2,
}
Expand description
Setting that controls Fraud Prevention assessments.
Variants§
Unspecified = 0
Default, unspecified setting. If opted in for automatic detection,
fraud_prevention_assessment
is returned based on the request.
Otherwise, fraud_prevention_assessment
is returned if
transaction_data
is present in the Event
and Fraud Prevention is
enabled in the Google Cloud console.
Enabled = 1
Enable Fraud Prevention for this assessment, if Fraud Prevention is enabled in the Google Cloud console.
Disabled = 2
Disable Fraud Prevention for this assessment, regardless of opt-in status or the Google Cloud console settings.
Implementations§
source§impl FraudPrevention
impl FraudPrevention
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 FraudPrevention
impl Clone for FraudPrevention
source§fn clone(&self) -> FraudPrevention
fn clone(&self) -> FraudPrevention
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FraudPrevention
impl Debug for FraudPrevention
source§impl Default for FraudPrevention
impl Default for FraudPrevention
source§fn default() -> FraudPrevention
fn default() -> FraudPrevention
source§impl From<FraudPrevention> for i32
impl From<FraudPrevention> for i32
source§fn from(value: FraudPrevention) -> i32
fn from(value: FraudPrevention) -> i32
source§impl Hash for FraudPrevention
impl Hash for FraudPrevention
source§impl Ord for FraudPrevention
impl Ord for FraudPrevention
source§fn cmp(&self, other: &FraudPrevention) -> Ordering
fn cmp(&self, other: &FraudPrevention) -> 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 FraudPrevention
impl PartialEq for FraudPrevention
source§fn eq(&self, other: &FraudPrevention) -> bool
fn eq(&self, other: &FraudPrevention) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for FraudPrevention
impl PartialOrd for FraudPrevention
source§fn partial_cmp(&self, other: &FraudPrevention) -> Option<Ordering>
fn partial_cmp(&self, other: &FraudPrevention) -> 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 FraudPrevention
impl TryFrom<i32> for FraudPrevention
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<FraudPrevention, UnknownEnumValue>
fn try_from(value: i32) -> Result<FraudPrevention, UnknownEnumValue>
impl Copy for FraudPrevention
impl Eq for FraudPrevention
impl StructuralPartialEq for FraudPrevention
Auto Trait Implementations§
impl Freeze for FraudPrevention
impl RefUnwindSafe for FraudPrevention
impl Send for FraudPrevention
impl Sync for FraudPrevention
impl Unpin for FraudPrevention
impl UnwindSafe for FraudPrevention
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