Skip to main content

opensearch_client/ml/
model_config.rs

1/*
2 * opensearch-client
3 *
4 * Rust Client for OpenSearch
5 *
6 * The version of the OpenAPI document: 3.1.0
7 * Contact: alberto.paro@gmail.com
8 * Generated by Paro OpenAPI Generator
9 */
10
11use serde::{Deserialize, Serialize};
12
13
14
15
16#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
17pub struct ModelConfig {  /// The embedding dimension.
18    #[serde(rename = "embedding_dimension", default, skip_serializing_if = "Option::is_none")]
19    pub embedding_dimension: Option<u32>,  /// The all config.
20    #[serde(rename = "all_config", default, skip_serializing_if = "Option::is_none")]
21    pub all_config: Option<String>,  /// The model type.
22    #[serde(rename = "model_type", default, skip_serializing_if = "Option::is_none")]
23    pub model_type: Option<String>,  /// The framework type.
24    #[serde(rename = "framework_type", default, skip_serializing_if = "Option::is_none")]
25    pub framework_type: Option<String>,
26}
27
28impl ModelConfig {
29    
30    pub fn new() -> ModelConfig {
31        ModelConfig {
32            embedding_dimension: None,
33            all_config: None,
34            model_type: None,
35            framework_type: None,
36        }
37    }
38}