Struct gapi_grpc::google::cloud::recaptchaenterprise::v1::RiskAnalysis[][src]

pub struct RiskAnalysis {
    pub score: f32,
    pub reasons: Vec<i32>,
}

Risk analysis result for an event.

Fields

score: f32

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).

reasons: Vec<i32>

Reasons contributing to the risk analysis verdict.

Implementations

impl RiskAnalysis[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 RiskAnalysis[src]

impl Debug for RiskAnalysis[src]

impl Default for RiskAnalysis[src]

impl Message for RiskAnalysis[src]

impl PartialEq<RiskAnalysis> for RiskAnalysis[src]

impl StructuralPartialEq for RiskAnalysis[src]

Auto Trait Implementations

impl RefUnwindSafe for RiskAnalysis

impl Send for RiskAnalysis

impl Sync for RiskAnalysis

impl Unpin for RiskAnalysis

impl UnwindSafe for RiskAnalysis

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]