Struct google_api_proto::google::cloud::recaptchaenterprise::v1::Event
source · pub struct Event {Show 15 fields
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 express: bool,
pub requested_uri: String,
pub waf_token_assessment: bool,
pub ja3: String,
pub headers: Vec<String>,
pub firewall_policy_evaluation: bool,
pub transaction_data: Option<TransactionData>,
pub user_info: Option<UserInfo>,
pub fraud_prevention: i32,
}
Expand description
The event being assessed.
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. Deprecated: use user_info.account_id
instead.
Unique stable hashed user identifier for the request. The identifier must
be hashed using hmac-sha256 with stable secret.
express: bool
Optional. Flag for a reCAPTCHA express request for an assessment without a
token. If enabled, site_key
must reference an express key.
requested_uri: String
Optional. The URI resource the user requested that triggered an assessment.
waf_token_assessment: bool
Optional. Flag for running WAF token assessment. If enabled, the token must be specified, and have been created by a WAF-enabled key.
ja3: String
Optional. JA3 fingerprint for SSL clients.
headers: Vec<String>
Optional. HTTP header information about the request.
firewall_policy_evaluation: bool
Optional. Flag for enabling firewall policy config assessment. If this flag is enabled, the firewall policy is evaluated and a suggested firewall action is returned in the response.
transaction_data: Option<TransactionData>
Optional. Data describing a payment transaction to be assessed. Sending this data enables reCAPTCHA Fraud Prevention and the FraudPreventionAssessment component in the response.
user_info: Option<UserInfo>
Optional. Information about the user that generates this event, when they can be identified. They are often identified through the use of an account for logged-in requests or login/registration requests, or by providing user identifiers for guest actions like checkout.
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