[][src]Struct gcp_client::google::cloud::recaptchaenterprise::v1beta1::Assessment

pub struct Assessment {
    pub name: String,
    pub event: Option<Event>,
    pub score: f32,
    pub token_properties: Option<TokenProperties>,
    pub reasons: Vec<i32>,
}

A recaptcha assessment resource.

Fields

name: String

Output only. The resource name for the Assessment in the format "projects/{project_number}/assessments/{assessment_id}".

event: Option<Event>

The event being assessed.

score: f32

Output only. Legitimate event score from 0.0 to 1.0. (1.0 means very likely legitimate traffic while 0.0 means very likely non-legitimate traffic).

token_properties: Option<TokenProperties>

Output only. Properties of the provided event token.

reasons: Vec<i32>

Output only. Reasons contributing to the risk analysis verdict.

Implementations

impl Assessment[src]

pub fn reasons(
    &self
) -> FilterMap<Cloned<Iter<i32>>, fn(_: i32) -> Option<ClassificationReason>>
[src]

Returns an iterator which yields the valid enum values contained in reasons.

pub fn push_reasons(&mut self, value: ClassificationReason)[src]

Appends the provided enum value to reasons.

Trait Implementations

impl Clone for Assessment[src]

impl Debug for Assessment[src]

impl Default for Assessment[src]

impl Message for Assessment[src]

impl PartialEq<Assessment> for Assessment[src]

impl StructuralPartialEq for Assessment[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]