pub struct CreateIndex {
pub kind: IndexKind,
pub name: Option<IndexNameSpec>,
pub if_not_exists: bool,
pub entity: IndexEntityKind,
pub variable: String,
pub label: Option<String>,
pub additional_labels: Vec<String>,
pub properties: Vec<String>,
pub options: Option<IndexOptions>,
pub span: Span,
}Fields§
§kind: IndexKind§name: Option<IndexNameSpec>§if_not_exists: bool§entity: IndexEntityKind§variable: StringPattern variable in the FOR clause (n for (n:Person), r for ()-[r:KNOWS]-()).
label: Option<String>Some(label_or_type) for property indexes; None for LOOKUP token indexes
where the label/type is the wildcard captured by labels(n) / type(r).
For FULLTEXT (which accepts :A|B|C) this carries the first label; the
rest live in additional_labels.
additional_labels: Vec<String>Extra labels beyond label. Only populated for FULLTEXT indexes
declared with the (n:A|B|C) pattern.
properties: Vec<String>Property keys covered by the index. Empty for LOOKUP token indexes.
options: Option<IndexOptions>§span: SpanTrait Implementations§
Source§impl Clone for CreateIndex
impl Clone for CreateIndex
Source§fn clone(&self) -> CreateIndex
fn clone(&self) -> CreateIndex
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 moreAuto Trait Implementations§
impl Freeze for CreateIndex
impl RefUnwindSafe for CreateIndex
impl Send for CreateIndex
impl Sync for CreateIndex
impl Unpin for CreateIndex
impl UnsafeUnpin for CreateIndex
impl UnwindSafe for CreateIndex
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