pub struct IndexDefinition {
pub name: String,
pub kind: StoredIndexKind,
pub entity: StoredIndexEntity,
pub label: Option<String>,
pub additional_labels: Vec<String>,
pub properties: Vec<String>,
pub options: BTreeMap<String, IndexConfigValue>,
pub state: StoredIndexState,
}Fields§
§name: String§kind: StoredIndexKind§entity: StoredIndexEntity§label: Option<String>Some(label_or_type) for property indexes. For LOOKUP token
indexes the label/type is the wildcard captured by labels(n)
or type(r) and is recorded as None.
additional_labels: Vec<String>Extra labels beyond label. Only populated for FULLTEXT indexes
declared with the (n:A|B|C) form. all_labels() walks the union.
properties: Vec<String>§options: BTreeMap<String, IndexConfigValue>§state: StoredIndexStateImplementations§
Source§impl IndexDefinition
impl IndexDefinition
Sourcepub fn all_labels(&self) -> impl Iterator<Item = &str>
pub fn all_labels(&self) -> impl Iterator<Item = &str>
Iterate every label / rel-type this index covers. For non-fulltext kinds this is at most one element.
Trait Implementations§
Source§impl Clone for IndexDefinition
impl Clone for IndexDefinition
Source§fn clone(&self) -> IndexDefinition
fn clone(&self) -> IndexDefinition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IndexDefinition
impl Debug for IndexDefinition
Source§impl<'de> Deserialize<'de> for IndexDefinition
impl<'de> Deserialize<'de> for IndexDefinition
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
Source§impl PartialEq for IndexDefinition
impl PartialEq for IndexDefinition
Source§fn eq(&self, other: &IndexDefinition) -> bool
fn eq(&self, other: &IndexDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexDefinition
impl Serialize for IndexDefinition
impl StructuralPartialEq for IndexDefinition
Auto Trait Implementations§
impl Freeze for IndexDefinition
impl RefUnwindSafe for IndexDefinition
impl Send for IndexDefinition
impl Sync for IndexDefinition
impl Unpin for IndexDefinition
impl UnsafeUnpin for IndexDefinition
impl UnwindSafe for IndexDefinition
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