#[non_exhaustive]pub struct EvaluationConfig {
pub datasets: Vec<InputDataset>,
pub model_specific_config: Option<ModelSpecificConfig>,
/* private fields */
}conversation-models only.Expand description
The configuration for model evaluation.
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.datasets: Vec<InputDataset>Required. Datasets used for evaluation.
model_specific_config: Option<ModelSpecificConfig>Specific configurations for different models in order to do evaluation.
Implementations§
Source§impl EvaluationConfig
impl EvaluationConfig
Sourcepub fn set_datasets<T, V>(self, v: T) -> Self
pub fn set_datasets<T, V>(self, v: T) -> Self
Sourcepub fn set_model_specific_config<T: Into<Option<ModelSpecificConfig>>>(
self,
v: T,
) -> Self
pub fn set_model_specific_config<T: Into<Option<ModelSpecificConfig>>>( self, v: T, ) -> Self
Sets the value of model_specific_config.
Note that all the setters affecting model_specific_config are mutually
exclusive.
§Example
use google_cloud_dialogflow_v2::model::evaluation_config::SmartReplyConfig;
let x = EvaluationConfig::new().set_model_specific_config(Some(
google_cloud_dialogflow_v2::model::evaluation_config::ModelSpecificConfig::SmartReplyConfig(SmartReplyConfig::default().into())));Sourcepub fn smart_reply_config(&self) -> Option<&Box<SmartReplyConfig>>
pub fn smart_reply_config(&self) -> Option<&Box<SmartReplyConfig>>
The value of model_specific_config
if it holds a SmartReplyConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_smart_reply_config<T: Into<Box<SmartReplyConfig>>>(
self,
v: T,
) -> Self
pub fn set_smart_reply_config<T: Into<Box<SmartReplyConfig>>>( self, v: T, ) -> Self
Sets the value of model_specific_config
to hold a SmartReplyConfig.
Note that all the setters affecting model_specific_config are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::evaluation_config::SmartReplyConfig;
let x = EvaluationConfig::new().set_smart_reply_config(SmartReplyConfig::default()/* use setters */);
assert!(x.smart_reply_config().is_some());
assert!(x.smart_compose_config().is_none());Sourcepub fn smart_compose_config(&self) -> Option<&Box<SmartComposeConfig>>
pub fn smart_compose_config(&self) -> Option<&Box<SmartComposeConfig>>
The value of model_specific_config
if it holds a SmartComposeConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_smart_compose_config<T: Into<Box<SmartComposeConfig>>>(
self,
v: T,
) -> Self
pub fn set_smart_compose_config<T: Into<Box<SmartComposeConfig>>>( self, v: T, ) -> Self
Sets the value of model_specific_config
to hold a SmartComposeConfig.
Note that all the setters affecting model_specific_config are
mutually exclusive.
§Example
use google_cloud_dialogflow_v2::model::evaluation_config::SmartComposeConfig;
let x = EvaluationConfig::new().set_smart_compose_config(SmartComposeConfig::default()/* use setters */);
assert!(x.smart_compose_config().is_some());
assert!(x.smart_reply_config().is_none());Trait Implementations§
Source§impl Clone for EvaluationConfig
impl Clone for EvaluationConfig
Source§fn clone(&self) -> EvaluationConfig
fn clone(&self) -> EvaluationConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EvaluationConfig
impl Debug for EvaluationConfig
Source§impl Default for EvaluationConfig
impl Default for EvaluationConfig
Source§fn default() -> EvaluationConfig
fn default() -> EvaluationConfig
Source§impl Message for EvaluationConfig
impl Message for EvaluationConfig
Source§impl PartialEq for EvaluationConfig
impl PartialEq for EvaluationConfig
impl StructuralPartialEq for EvaluationConfig
Auto Trait Implementations§
impl Freeze for EvaluationConfig
impl RefUnwindSafe for EvaluationConfig
impl Send for EvaluationConfig
impl Sync for EvaluationConfig
impl Unpin for EvaluationConfig
impl UnsafeUnpin for EvaluationConfig
impl UnwindSafe for EvaluationConfig
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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