pub enum IndexSpec {
NodeEquality {
label: String,
property: String,
unique: bool,
},
NodeRange {
label: String,
property: String,
direction: RangeIndexDirection,
},
EdgeEquality {
label: String,
property: String,
},
EdgeRange {
label: String,
property: String,
direction: RangeIndexDirection,
},
NodeVector {
label: String,
property: String,
dimension: NonZero<usize>,
metric: VectorDistanceMetric,
tenant_property: Option<String>,
},
NodeText {
label: String,
property: String,
tenant_property: Option<String>,
},
EdgeVector {
label: String,
property: String,
dimension: NonZero<usize>,
metric: VectorDistanceMetric,
tenant_property: Option<String>,
},
EdgeText {
label: String,
property: String,
tenant_property: Option<String>,
},
}Expand description
Dynamic index declaration.
Variants§
NodeEquality
Node equality index.
NodeRange
Node range index.
Fields
§
direction: RangeIndexDirectionDirection.
EdgeEquality
Edge equality index.
EdgeRange
Edge range index.
Fields
§
direction: RangeIndexDirectionDirection.
NodeVector
Node vector index.
Fields
§
metric: VectorDistanceMetricDistance metric.
NodeText
Node text index.
Fields
EdgeVector
Edge vector index.
Fields
§
metric: VectorDistanceMetricDistance metric.
EdgeText
Edge text index.
Implementations§
Source§impl IndexSpec
impl IndexSpec
Sourcepub fn node_equality(
label: impl Into<String>,
property: impl Into<String>,
) -> IndexSpec
pub fn node_equality( label: impl Into<String>, property: impl Into<String>, ) -> IndexSpec
Node equality index.
Sourcepub fn node_unique_equality(
label: impl Into<String>,
property: impl Into<String>,
) -> IndexSpec
pub fn node_unique_equality( label: impl Into<String>, property: impl Into<String>, ) -> IndexSpec
Unique node equality index.
Sourcepub fn node_range(
label: impl Into<String>,
property: impl Into<String>,
) -> IndexSpec
pub fn node_range( label: impl Into<String>, property: impl Into<String>, ) -> IndexSpec
Node range index.
Sourcepub fn node_range_desc(
label: impl Into<String>,
property: impl Into<String>,
) -> IndexSpec
pub fn node_range_desc( label: impl Into<String>, property: impl Into<String>, ) -> IndexSpec
Descending node range index.
Sourcepub fn node_range_with_direction(
label: impl Into<String>,
property: impl Into<String>,
direction: RangeIndexDirection,
) -> IndexSpec
pub fn node_range_with_direction( label: impl Into<String>, property: impl Into<String>, direction: RangeIndexDirection, ) -> IndexSpec
Node range index with direction.
Sourcepub fn edge_equality(
label: impl Into<String>,
property: impl Into<String>,
) -> IndexSpec
pub fn edge_equality( label: impl Into<String>, property: impl Into<String>, ) -> IndexSpec
Edge equality index.
Sourcepub fn edge_range(
label: impl Into<String>,
property: impl Into<String>,
) -> IndexSpec
pub fn edge_range( label: impl Into<String>, property: impl Into<String>, ) -> IndexSpec
Edge range index.
Sourcepub fn edge_range_desc(
label: impl Into<String>,
property: impl Into<String>,
) -> IndexSpec
pub fn edge_range_desc( label: impl Into<String>, property: impl Into<String>, ) -> IndexSpec
Descending edge range index.
Sourcepub fn edge_range_with_direction(
label: impl Into<String>,
property: impl Into<String>,
direction: RangeIndexDirection,
) -> IndexSpec
pub fn edge_range_with_direction( label: impl Into<String>, property: impl Into<String>, direction: RangeIndexDirection, ) -> IndexSpec
Edge range index with direction.
Sourcepub fn node_vector(
label: impl Into<String>,
property: impl Into<String>,
dimension: NonZero<usize>,
metric: VectorDistanceMetric,
tenant_property: Option<impl Into<String>>,
) -> IndexSpec
pub fn node_vector( label: impl Into<String>, property: impl Into<String>, dimension: NonZero<usize>, metric: VectorDistanceMetric, tenant_property: Option<impl Into<String>>, ) -> IndexSpec
Node vector index.
Sourcepub fn node_text(
label: impl Into<String>,
property: impl Into<String>,
tenant_property: Option<impl Into<String>>,
) -> IndexSpec
pub fn node_text( label: impl Into<String>, property: impl Into<String>, tenant_property: Option<impl Into<String>>, ) -> IndexSpec
Node text index.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for IndexSpec
impl<'de> Deserialize<'de> for IndexSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IndexSpec
Source§impl Serialize for IndexSpec
impl Serialize for IndexSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IndexSpec
Auto Trait Implementations§
impl Freeze for IndexSpec
impl RefUnwindSafe for IndexSpec
impl Send for IndexSpec
impl Sync for IndexSpec
impl Unpin for IndexSpec
impl UnsafeUnpin for IndexSpec
impl UnwindSafe for IndexSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.