Struct gapi_grpc::google::cloud::dialogflow::cx::v3beta1::experiment::result::Metric[][src]

pub struct Metric {
    pub type: i32,
    pub count_type: i32,
    pub confidence_interval: Option<ConfidenceInterval>,
    pub value: Option<Value>,
}

Metric and corresponding confidence intervals.

Fields

type: i32

Ratio-based metric type. Only one of type or count_type is specified in each Metric.

count_type: i32

Count-based metric type. Only one of type or count_type is specified in each Metric.

confidence_interval: Option<ConfidenceInterval>

The probability that the treatment is better than all other treatments in the experiment

value: Option<Value>

The actual value of the metric.

Implementations

impl Metric[src]

pub fn type(&self) -> MetricType[src]

Returns the enum value of type, or the default if the field is set to an invalid enum value.

pub fn set_type(&mut self, value: MetricType)[src]

Sets type to the provided enum value.

pub fn count_type(&self) -> CountType[src]

Returns the enum value of count_type, or the default if the field is set to an invalid enum value.

pub fn set_count_type(&mut self, value: CountType)[src]

Sets count_type to the provided enum value.

Trait Implementations

impl Clone for Metric[src]

impl Debug for Metric[src]

impl Default for Metric[src]

impl Message for Metric[src]

impl PartialEq<Metric> for Metric[src]

impl StructuralPartialEq for Metric[src]

Auto Trait Implementations

impl RefUnwindSafe for Metric

impl Send for Metric

impl Sync for Metric

impl Unpin for Metric

impl UnwindSafe for Metric

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]