pub struct IndexDatabaseDescription {
pub name: String,
pub dimension: usize,
pub metric: Metric,
pub replicas: usize,
pub shards: usize,
pub pods: usize,
pub pod_type: Option<String>,
}
Expand description
Details the configuration of the index.
Fields§
§name: String
Index name.
dimension: usize
Vector dimension.
metric: Metric
The similairty metric, values listed in Metric
.
replicas: usize
Number of replicas.
shards: usize
Number of shards.
pods: usize
Number of pods.
pod_type: Option<String>
Pod type for the index.
Trait Implementations§
Source§impl Clone for IndexDatabaseDescription
impl Clone for IndexDatabaseDescription
Source§fn clone(&self) -> IndexDatabaseDescription
fn clone(&self) -> IndexDatabaseDescription
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 IndexDatabaseDescription
impl Debug for IndexDatabaseDescription
Source§impl Default for IndexDatabaseDescription
impl Default for IndexDatabaseDescription
Source§fn default() -> IndexDatabaseDescription
fn default() -> IndexDatabaseDescription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for IndexDatabaseDescription
impl<'de> Deserialize<'de> for IndexDatabaseDescription
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 IndexDatabaseDescription
impl RefUnwindSafe for IndexDatabaseDescription
impl Send for IndexDatabaseDescription
impl Sync for IndexDatabaseDescription
impl Unpin for IndexDatabaseDescription
impl UnwindSafe for IndexDatabaseDescription
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