Struct pinecone_rs::models::IndexCreateRequest
source · pub struct IndexCreateRequest {
pub name: String,
pub dimension: usize,
pub metric: 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: String
The metric for the Index, all the options for this are detailed in Metric
.
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 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