pinecone_sdk/openapi/models/
configure_index_request_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 ConfigureIndexRequestSpec {
16    #[serde(rename = "pod")]
17    pub pod: Box<models::ConfigureIndexRequestSpecPod>,
18}
19
20impl ConfigureIndexRequestSpec {
21    pub fn new(pod: models::ConfigureIndexRequestSpecPod) -> ConfigureIndexRequestSpec {
22        ConfigureIndexRequestSpec {
23            pod: Box::new(pod),
24        }
25    }
26}
27