#[repr(i32)]pub enum ExperimentMetric {
Show 15 variants
Unspecified = 0,
Unknown = 1,
Clicks = 2,
Impressions = 3,
Cost = 4,
ConversionsPerInteractionRate = 5,
CostPerConversion = 6,
ConversionsValuePerCost = 7,
AverageCpc = 8,
Ctr = 9,
IncrementalConversions = 10,
CompletedVideoViews = 11,
CustomAlgorithms = 12,
Conversions = 13,
ConversionValue = 14,
}
Expand description
The type of experiment metric.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
The value is unknown in this version.
Clicks = 2
The goal of the experiment is clicks.
Impressions = 3
The goal of the experiment is impressions.
Cost = 4
The goal of the experiment is cost.
ConversionsPerInteractionRate = 5
The goal of the experiment is conversion rate.
CostPerConversion = 6
The goal of the experiment is cost per conversion.
ConversionsValuePerCost = 7
The goal of the experiment is conversion value per cost.
AverageCpc = 8
The goal of the experiment is avg cpc.
Ctr = 9
The goal of the experiment is ctr.
IncrementalConversions = 10
The goal of the experiment is incremental conversions.
CompletedVideoViews = 11
The goal of the experiment is completed video views.
CustomAlgorithms = 12
The goal of the experiment is custom algorithms.
Conversions = 13
The goal of the experiment is conversions.
ConversionValue = 14
The goal of the experiment is conversion value.
Implementations§
Source§impl ExperimentMetric
impl ExperimentMetric
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for ExperimentMetric
impl Clone for ExperimentMetric
Source§fn clone(&self) -> ExperimentMetric
fn clone(&self) -> ExperimentMetric
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExperimentMetric
impl Debug for ExperimentMetric
Source§impl Default for ExperimentMetric
impl Default for ExperimentMetric
Source§fn default() -> ExperimentMetric
fn default() -> ExperimentMetric
Source§impl From<ExperimentMetric> for i32
impl From<ExperimentMetric> for i32
Source§fn from(value: ExperimentMetric) -> i32
fn from(value: ExperimentMetric) -> i32
Source§impl Hash for ExperimentMetric
impl Hash for ExperimentMetric
Source§impl Ord for ExperimentMetric
impl Ord for ExperimentMetric
Source§fn cmp(&self, other: &ExperimentMetric) -> Ordering
fn cmp(&self, other: &ExperimentMetric) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ExperimentMetric
impl PartialEq for ExperimentMetric
Source§impl PartialOrd for ExperimentMetric
impl PartialOrd for ExperimentMetric
impl Copy for ExperimentMetric
impl Eq for ExperimentMetric
impl StructuralPartialEq for ExperimentMetric
Auto Trait Implementations§
impl Freeze for ExperimentMetric
impl RefUnwindSafe for ExperimentMetric
impl Send for ExperimentMetric
impl Sync for ExperimentMetric
impl Unpin for ExperimentMetric
impl UnwindSafe for ExperimentMetric
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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