pub struct IndexCreateRequest {
pub name: String,
pub dimension: usize,
pub metric: Metric,
pub pod_type: PodType,
pub pods: Option<usize>,
pub replicas: Option<usize>,
pub shards: Option<usize>,
pub metadata_config: Option<IndexMetadataConfig>,
pub source_collection: Option<String>,
}
Expand description
Request sent to pinecone for the creation of an Index.
Fields§
§name: String
Index name.
dimension: usize
The dimension for the vectors stored within the index.
metric: Metric
The metric for the Index, all the options for this are detailed in Metric
.
pod_type: PodType
The pod type for the index, all the options for this are detailed in PodType
.
pods: Option<usize>
The number of pods for the index.
replicas: Option<usize>
The number of replicas for the index.
shards: Option<usize>
The number of shards for the index.
metadata_config: Option<IndexMetadataConfig>
The configuration for the metadata index.
source_collection: Option<String>
The name of the collection to create an index from
Trait Implementations§
Source§impl Clone for IndexCreateRequest
impl Clone for IndexCreateRequest
Source§fn clone(&self) -> IndexCreateRequest
fn clone(&self) -> IndexCreateRequest
Returns a copy 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 Debug for IndexCreateRequest
impl Debug for IndexCreateRequest
Source§impl Default for IndexCreateRequest
impl Default for IndexCreateRequest
Source§fn default() -> IndexCreateRequest
fn default() -> IndexCreateRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndexCreateRequest
impl<'de> Deserialize<'de> for IndexCreateRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IndexCreateRequest
impl RefUnwindSafe for IndexCreateRequest
impl Send for IndexCreateRequest
impl Sync for IndexCreateRequest
impl Unpin for IndexCreateRequest
impl UnwindSafe for IndexCreateRequest
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