pub struct AnnotateAssessmentRequest {
pub name: String,
pub annotation: i32,
pub reasons: Vec<i32>,
pub account_id: String,
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}/assessments/{assessment}
.
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.
account_id: String
Optional. A stable account identifier to apply to the assessment. This is
an alternative to setting account_id
in CreateAssessment
, for example
when a stable account identifier is not yet known in the initial request.
hashed_account_id: Bytes
Optional. A stable hashed account identifier to apply to the assessment.
This is an alternative to setting hashed_account_id
in
CreateAssessment
, for example when a stable account identifier is not yet
known in the initial request.
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