pub struct IndexFacts {
pub kind: IndexKindSpec,
pub relationship: bool,
pub labels: Vec<String>,
pub properties: Vec<String>,
pub with_properties: Vec<String>,
}Expand description
One index’s typed facts as every reader resolves them, through the fixed
precedence the SHOW INDEXES row and the 00NA0 note share: the index’s
IndexDetailSpec, then the owning constraint (a constraint-backed
index), then the legacy IndexDef encoding. No reader re-spells the
chain, so a new detail field lands in every rendering at once.
Fields§
§kind: IndexKindSpec§relationship: bool§labels: Vec<String>§properties: Vec<String>§with_properties: Vec<String>CIP-235 WITH [...] single-stage-filtering properties (VECTOR).
Implementations§
Source§impl IndexFacts
impl IndexFacts
Sourcepub fn resolve(
index: &IndexDef,
detail: Option<&IndexDetailSpec>,
backing: Option<&ConstraintDef>,
) -> Self
pub fn resolve( index: &IndexDef, detail: Option<&IndexDetailSpec>, backing: Option<&ConstraintDef>, ) -> Self
Resolve one index’s facts. backing is the index’s index-backed
constraint of the same name, when the caller has already joined it
(the SHOW row); None elsewhere. A detail-less, constraint-less row
is the legacy encoding: a node index, its label from the
IndexDef and its properties from the encoding’s head.
Trait Implementations§
Source§impl Clone for IndexFacts
impl Clone for IndexFacts
Source§impl Debug for IndexFacts
impl Debug for IndexFacts
impl Eq for IndexFacts
Source§impl PartialEq for IndexFacts
impl PartialEq for IndexFacts
impl StructuralPartialEq for IndexFacts
Auto Trait Implementations§
impl Forget for IndexFacts
impl Freeze for IndexFacts
impl Move for IndexFacts
impl RefUnwindSafe for IndexFacts
impl Send for IndexFacts
impl Sync for IndexFacts
impl Unpin for IndexFacts
impl UnsafeUnpin for IndexFacts
impl UnwindSafe for IndexFacts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.