pinecone_sdk/openapi/models/
index_model_spec.rs

1/*
2 * Pinecone Control Plane API
3 *
4 * Pinecone is a vector database that makes it easy to search and retrieve billions of high-dimensional vectors.
5 *
6 * The version of the OpenAPI document: 2024-07
7 * Contact: support@pinecone.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::openapi::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct IndexModelSpec {
16    #[serde(rename = "pod", skip_serializing_if = "Option::is_none")]
17    pub pod: Option<Box<models::PodSpec>>,
18    #[serde(rename = "serverless", skip_serializing_if = "Option::is_none")]
19    pub serverless: Option<Box<models::ServerlessSpec>>,
20}
21
22impl IndexModelSpec {
23    pub fn new() -> IndexModelSpec {
24        IndexModelSpec {
25            pod: None,
26            serverless: None,
27        }
28    }
29}
30