Struct google_api_proto::google::cloud::recaptchaenterprise::v1beta1::Event
source · pub struct Event {
pub token: String,
pub site_key: String,
pub user_agent: String,
pub user_ip_address: String,
pub expected_action: String,
pub hashed_account_id: Bytes,
pub transaction_data: Option<TransactionData>,
pub fraud_prevention: i32,
}
Fields§
§token: String
Optional. The user response token provided by the reCAPTCHA Enterprise client-side integration on your site.
site_key: String
Optional. The site key that was used to invoke reCAPTCHA Enterprise on your site and generate the token.
user_agent: String
Optional. The user agent present in the request from the user’s device related to this event.
user_ip_address: String
Optional. The IP address in the request from the user’s device related to this event.
expected_action: String
Optional. The expected action for this type of event. This should be the same action provided at token generation time on client-side platforms already integrated with recaptcha enterprise.
hashed_account_id: Bytes
Optional. Unique stable hashed user identifier for the request. The identifier must be hashed using hmac-sha256 with stable secret.
transaction_data: Option<TransactionData>
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Enterprise Fraud Prevention and the FraudPreventionAssessment component in the response.
fraud_prevention: i32
Optional. The Fraud Prevention setting for this Assessment.
Implementations§
source§impl Event
impl Event
sourcepub fn fraud_prevention(&self) -> FraudPrevention
pub fn fraud_prevention(&self) -> FraudPrevention
Returns the enum value of fraud_prevention
, or the default if the field is set to an invalid enum value.
sourcepub fn set_fraud_prevention(&mut self, value: FraudPrevention)
pub fn set_fraud_prevention(&mut self, value: FraudPrevention)
Sets fraud_prevention
to the provided enum value.
Trait Implementations§
source§impl Message for Event
impl Message for Event
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 Event
impl PartialEq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl !Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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