pub struct PropertyIndexSpec {
pub label: String,
pub properties: Vec<String>,
}Expand description
Declarative spec for a single-property equality index. An index is
uniquely identified by its (label, properties) pair — users don’t
name them, which keeps DROP/SHOW behavior simple and matches the
way the planner looks them up when deciding whether to emit
IndexSeek.
properties is a Vec<String> so composite indexes (tuple keys
over multiple properties, CREATE INDEX FOR (n:Label) ON (n.a, n.b))
fit the same shape as the single-property form. Single-property
specs encode byte-identically to the pre-composite layout on
disk, so existing data is readable after upgrade.
Fields§
§label: String§properties: Vec<String>Trait Implementations§
Source§impl Clone for PropertyIndexSpec
impl Clone for PropertyIndexSpec
Source§fn clone(&self) -> PropertyIndexSpec
fn clone(&self) -> PropertyIndexSpec
Returns a duplicate 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 PropertyIndexSpec
impl Debug for PropertyIndexSpec
Source§impl Hash for PropertyIndexSpec
impl Hash for PropertyIndexSpec
Source§impl PartialEq for PropertyIndexSpec
impl PartialEq for PropertyIndexSpec
impl Eq for PropertyIndexSpec
impl StructuralPartialEq for PropertyIndexSpec
Auto Trait Implementations§
impl Freeze for PropertyIndexSpec
impl RefUnwindSafe for PropertyIndexSpec
impl Send for PropertyIndexSpec
impl Sync for PropertyIndexSpec
impl Unpin for PropertyIndexSpec
impl UnsafeUnpin for PropertyIndexSpec
impl UnwindSafe for PropertyIndexSpec
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