#[non_exhaustive]pub struct SmartReplyModelMetadata {
pub training_model_type: ModelType,
/* private fields */
}Available on crate feature
conversation-models only.Expand description
Metadata for smart reply models.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.training_model_type: ModelTypeOptional. Type of the smart reply model. If not provided, model_type is used.
Implementations§
Source§impl SmartReplyModelMetadata
impl SmartReplyModelMetadata
pub fn new() -> Self
Sourcepub fn set_training_model_type<T: Into<ModelType>>(self, v: T) -> Self
pub fn set_training_model_type<T: Into<ModelType>>(self, v: T) -> Self
Sets the value of training_model_type.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::conversation_model::ModelType;
let x0 = SmartReplyModelMetadata::new().set_training_model_type(ModelType::SmartReplyDualEncoderModel);
let x1 = SmartReplyModelMetadata::new().set_training_model_type(ModelType::SmartReplyBertModel);Trait Implementations§
Source§impl Clone for SmartReplyModelMetadata
impl Clone for SmartReplyModelMetadata
Source§fn clone(&self) -> SmartReplyModelMetadata
fn clone(&self) -> SmartReplyModelMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SmartReplyModelMetadata
impl Debug for SmartReplyModelMetadata
Source§impl Default for SmartReplyModelMetadata
impl Default for SmartReplyModelMetadata
Source§fn default() -> SmartReplyModelMetadata
fn default() -> SmartReplyModelMetadata
Returns the “default value” for a type. Read more
Source§impl Message for SmartReplyModelMetadata
impl Message for SmartReplyModelMetadata
Source§impl PartialEq for SmartReplyModelMetadata
impl PartialEq for SmartReplyModelMetadata
impl StructuralPartialEq for SmartReplyModelMetadata
Auto Trait Implementations§
impl Freeze for SmartReplyModelMetadata
impl RefUnwindSafe for SmartReplyModelMetadata
impl Send for SmartReplyModelMetadata
impl Sync for SmartReplyModelMetadata
impl Unpin for SmartReplyModelMetadata
impl UnwindSafe for SmartReplyModelMetadata
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
Mutably borrows from an owned value. Read more