Struct google_api_proto::google::cloud::recaptchaenterprise::v1beta1::AnnotateAssessmentRequest
source · pub struct AnnotateAssessmentRequest {
pub name: String,
pub annotation: i32,
pub reasons: Vec<i32>,
pub hashed_account_id: Bytes,
pub transaction_event: Option<TransactionEvent>,
}
Expand description
The request message to annotate an Assessment.
Fields§
§name: String
Required. The resource name of the Assessment, in the format
projects/{project_number}/assessments/{assessment_id}
.
annotation: i32
Optional. The annotation that is assigned to the Event. This field can be left empty to provide reasons that apply to an event without concluding whether the event is legitimate or fraudulent.
reasons: Vec<i32>
Optional. Reasons for the annotation that are assigned to the event.
hashed_account_id: Bytes
Optional. Unique stable hashed user identifier to apply to the assessment.
This is an alternative to setting the hashed_account_id
in
CreateAssessment
, for example, when the account identifier is not yet
known in the initial request. It is recommended that the identifier is
hashed using hmac-sha256 with stable secret.
transaction_event: Option<TransactionEvent>
Optional. If the assessment is part of a payment transaction, provide details on payment lifecycle events that occur in the transaction.
Implementations§
source§impl AnnotateAssessmentRequest
impl AnnotateAssessmentRequest
sourcepub fn annotation(&self) -> Annotation
pub fn annotation(&self) -> Annotation
Returns the enum value of annotation
, or the default if the field is set to an invalid enum value.
sourcepub fn set_annotation(&mut self, value: Annotation)
pub fn set_annotation(&mut self, value: Annotation)
Sets annotation
to the provided enum value.
sourcepub fn reasons(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Reason>>
pub fn reasons( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<Reason>>
Returns an iterator which yields the valid enum values contained in reasons
.
sourcepub fn push_reasons(&mut self, value: Reason)
pub fn push_reasons(&mut self, value: Reason)
Appends the provided enum value to reasons
.
Trait Implementations§
source§impl Clone for AnnotateAssessmentRequest
impl Clone for AnnotateAssessmentRequest
source§fn clone(&self) -> AnnotateAssessmentRequest
fn clone(&self) -> AnnotateAssessmentRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnnotateAssessmentRequest
impl Debug for AnnotateAssessmentRequest
source§impl Default for AnnotateAssessmentRequest
impl Default for AnnotateAssessmentRequest
source§impl Message for AnnotateAssessmentRequest
impl Message for AnnotateAssessmentRequest
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 AnnotateAssessmentRequest
impl PartialEq for AnnotateAssessmentRequest
source§fn eq(&self, other: &AnnotateAssessmentRequest) -> bool
fn eq(&self, other: &AnnotateAssessmentRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AnnotateAssessmentRequest
Auto Trait Implementations§
impl !Freeze for AnnotateAssessmentRequest
impl RefUnwindSafe for AnnotateAssessmentRequest
impl Send for AnnotateAssessmentRequest
impl Sync for AnnotateAssessmentRequest
impl Unpin for AnnotateAssessmentRequest
impl UnwindSafe for AnnotateAssessmentRequest
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