vapi_client/models/
trieve_knowledge_base_import.rs

1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12
13use crate::models;
14
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct TrieveKnowledgeBaseImport {
17    /// This is to import an existing dataset from Trieve.
18    #[serde(rename = "type")]
19    pub r#type: Type,
20    /// This is the `datasetId` of the dataset on your Trieve account.
21    #[serde(rename = "providerId")]
22    pub provider_id: String,
23}
24
25impl TrieveKnowledgeBaseImport {
26    pub fn new(r#type: Type, provider_id: String) -> TrieveKnowledgeBaseImport {
27        TrieveKnowledgeBaseImport {
28            r#type,
29            provider_id,
30        }
31    }
32}
33/// This is to import an existing dataset from Trieve.
34#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
35pub enum Type {
36    #[serde(rename = "import")]
37    Import,
38}
39
40impl Default for Type {
41    fn default() -> Type {
42        Self::Import
43    }
44}