Enum google_api_proto::google::cloud::documentai::v1beta3::evaluation::multi_confidence_metrics::MetricsType
source · #[repr(i32)]pub enum MetricsType {
Unspecified = 0,
Aggregate = 1,
}
Expand description
A type that determines how metrics should be interpreted.
Variants§
Unspecified = 0
The metrics type is unspecified. By default, metrics without a particular specification are for leaf entity types (i.e., top-level entity types without child types, or child types which are not parent types themselves).
Aggregate = 1
Indicates whether metrics for this particular label type represent an aggregate of metrics for other types instead of being based on actual TP/FP/FN values for the label type. Metrics for parent (i.e., non-leaf) entity types are an aggregate of metrics for their children.
Implementations§
source§impl MetricsType
impl MetricsType
source§impl MetricsType
impl MetricsType
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 MetricsType
impl Clone for MetricsType
source§fn clone(&self) -> MetricsType
fn clone(&self) -> MetricsType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MetricsType
impl Debug for MetricsType
source§impl Default for MetricsType
impl Default for MetricsType
source§fn default() -> MetricsType
fn default() -> MetricsType
source§impl From<MetricsType> for i32
impl From<MetricsType> for i32
source§fn from(value: MetricsType) -> i32
fn from(value: MetricsType) -> i32
source§impl Hash for MetricsType
impl Hash for MetricsType
source§impl Ord for MetricsType
impl Ord for MetricsType
source§fn cmp(&self, other: &MetricsType) -> Ordering
fn cmp(&self, other: &MetricsType) -> 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 MetricsType
impl PartialEq for MetricsType
source§fn eq(&self, other: &MetricsType) -> bool
fn eq(&self, other: &MetricsType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MetricsType
impl PartialOrd for MetricsType
source§fn partial_cmp(&self, other: &MetricsType) -> Option<Ordering>
fn partial_cmp(&self, other: &MetricsType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for MetricsType
impl TryFrom<i32> for MetricsType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<MetricsType, DecodeError>
fn try_from(value: i32) -> Result<MetricsType, DecodeError>
impl Copy for MetricsType
impl Eq for MetricsType
impl StructuralPartialEq for MetricsType
Auto Trait Implementations§
impl Freeze for MetricsType
impl RefUnwindSafe for MetricsType
impl Send for MetricsType
impl Sync for MetricsType
impl Unpin for MetricsType
impl UnwindSafe for MetricsType
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<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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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