pub struct GraphResult {
pub headers: Vec<String>,
pub rows: Vec<Vec<Value>>,
}Expand description
Dynamic header-keyed result table returned by StoragePort::graph_traverse.
headers carries column names in row order; rows are row-major with
rows[i].len() == headers.len(). The shape is wire-additive: backends
MAY append new columns without breaking older consumers, and consumers
SHOULD locate columns by header name (not positional index) when they need
optional metadata.
§Canonical columns (Plan 03-03 + P0 #4 Wave 3)
The Graph::anchored operator emits a Cypher RETURN whose canonical
header order is:
| Header | Type | Meaning | Default if missing |
|---|---|---|---|
id | hex str | m.id_hex — destination entity’s 16-byte ULID, hex. | "" (empty hit) |
name | str/null | m.name — display name. | null |
type | str/null | m.type — entity type tag. | null |
path_length | int | Number of edges traversed (length(path)). | row index i |
edge_weight_product | float | product of coalesce(r.weight, 1.0) over path edges | 1.0 |
anchor_confidence | float | Confidence of the seed entity that anchored this path. | 1.0 |
The first three are required by the operator today (positional read for
back-compat with all canned_graph_with-shaped test fixtures). The last
three are optional: when absent, the operator substitutes the documented
defaults so the scoring formula reduces to the legacy 1.0 / (1.0 + i).
Fields§
§headers: Vec<String>§rows: Vec<Vec<Value>>Row-major; column count must equal headers.len() for every row.
Trait Implementations§
Source§impl Clone for GraphResult
impl Clone for GraphResult
Source§fn clone(&self) -> GraphResult
fn clone(&self) -> GraphResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GraphResult
impl Debug for GraphResult
Source§impl Default for GraphResult
impl Default for GraphResult
Source§fn default() -> GraphResult
fn default() -> GraphResult
Source§impl<'de> Deserialize<'de> for GraphResult
impl<'de> Deserialize<'de> for GraphResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GraphResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for GraphResult
impl Serialize for GraphResult
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,
Auto Trait Implementations§
impl Freeze for GraphResult
impl RefUnwindSafe for GraphResult
impl Send for GraphResult
impl Sync for GraphResult
impl Unpin for GraphResult
impl UnsafeUnpin for GraphResult
impl UnwindSafe for GraphResult
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
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more