#[non_exhaustive]pub struct ArticleSuggestionModelMetadata {
pub training_model_type: ModelType,
/* private fields */
}Available on crate feature
conversation-models only.Expand description
Metadata for article suggestion 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 article suggestion model. If not provided, model_type is used.
Implementations§
Source§impl ArticleSuggestionModelMetadata
impl ArticleSuggestionModelMetadata
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 = ArticleSuggestionModelMetadata::new().set_training_model_type(ModelType::SmartReplyDualEncoderModel);
let x1 = ArticleSuggestionModelMetadata::new().set_training_model_type(ModelType::SmartReplyBertModel);Trait Implementations§
Source§impl Clone for ArticleSuggestionModelMetadata
impl Clone for ArticleSuggestionModelMetadata
Source§fn clone(&self) -> ArticleSuggestionModelMetadata
fn clone(&self) -> ArticleSuggestionModelMetadata
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 Default for ArticleSuggestionModelMetadata
impl Default for ArticleSuggestionModelMetadata
Source§fn default() -> ArticleSuggestionModelMetadata
fn default() -> ArticleSuggestionModelMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for ArticleSuggestionModelMetadata
impl PartialEq for ArticleSuggestionModelMetadata
Source§fn eq(&self, other: &ArticleSuggestionModelMetadata) -> bool
fn eq(&self, other: &ArticleSuggestionModelMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArticleSuggestionModelMetadata
Auto Trait Implementations§
impl Freeze for ArticleSuggestionModelMetadata
impl RefUnwindSafe for ArticleSuggestionModelMetadata
impl Send for ArticleSuggestionModelMetadata
impl Sync for ArticleSuggestionModelMetadata
impl Unpin for ArticleSuggestionModelMetadata
impl UnwindSafe for ArticleSuggestionModelMetadata
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