#[non_exhaustive]pub struct Evaluation {
pub name: String,
pub create_time: Option<Timestamp>,
pub document_counters: Option<Counters>,
pub all_entities_metrics: Option<MultiConfidenceMetrics>,
pub entity_metrics: HashMap<String, MultiConfidenceMetrics>,
pub kms_key_name: String,
pub kms_key_version_name: String,
/* private fields */
}Expand description
An evaluation of a ProcessorVersion’s performance.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe resource name of the evaluation.
Format:
projects/{project}/locations/{location}/processors/{processor}/processorVersions/{processor_version}/evaluations/{evaluation}
create_time: Option<Timestamp>The time that the evaluation was created.
document_counters: Option<Counters>Counters for the documents used in the evaluation.
all_entities_metrics: Option<MultiConfidenceMetrics>Metrics for all the entities in aggregate.
entity_metrics: HashMap<String, MultiConfidenceMetrics>Metrics across confidence levels, for different entities.
kms_key_name: StringThe KMS key name used for encryption.
kms_key_version_name: StringThe KMS key version with which data is encrypted.
Implementations§
Source§impl Evaluation
impl Evaluation
pub fn new() -> Self
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_document_counters<T>(self, v: T) -> Self
pub fn set_document_counters<T>(self, v: T) -> Self
Sets the value of document_counters.
Sourcepub fn set_or_clear_document_counters<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_document_counters<T>(self, v: Option<T>) -> Self
Sets or clears the value of document_counters.
Sourcepub fn set_all_entities_metrics<T>(self, v: T) -> Selfwhere
T: Into<MultiConfidenceMetrics>,
pub fn set_all_entities_metrics<T>(self, v: T) -> Selfwhere
T: Into<MultiConfidenceMetrics>,
Sets the value of all_entities_metrics.
Sourcepub fn set_or_clear_all_entities_metrics<T>(self, v: Option<T>) -> Selfwhere
T: Into<MultiConfidenceMetrics>,
pub fn set_or_clear_all_entities_metrics<T>(self, v: Option<T>) -> Selfwhere
T: Into<MultiConfidenceMetrics>,
Sets or clears the value of all_entities_metrics.
Sourcepub fn set_entity_metrics<T, K, V>(self, v: T) -> Self
pub fn set_entity_metrics<T, K, V>(self, v: T) -> Self
Sets the value of entity_metrics.
Sourcepub fn set_kms_key_name<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_name<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_name.
Sourcepub fn set_kms_key_version_name<T: Into<String>>(self, v: T) -> Self
pub fn set_kms_key_version_name<T: Into<String>>(self, v: T) -> Self
Sets the value of kms_key_version_name.
Trait Implementations§
Source§impl Clone for Evaluation
impl Clone for Evaluation
Source§fn clone(&self) -> Evaluation
fn clone(&self) -> Evaluation
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more