pub struct GraphFetchQuery {
pub limit: Option<u32>,
pub cursor: Option<String>,
pub include_statements: Option<bool>,
pub include_memories: Option<bool>,
pub include_memory_edges: Option<bool>,
pub include_tombstoned: Option<bool>,
}Expand description
GET /v1/graph query parameters. Default layer is the concept map
(entities + Relation/Fact edges); the toggles add value-object statement
nodes and source-memory provenance nodes.
Fields§
§limit: Option<u32>Page size (statements off the spine), clamped to 1..=500 (default 200).
cursor: Option<String>Opaque keyset cursor (hex) from a previous page’s next_cursor.
include_statements: Option<bool>Emit value-object statement nodes + has_statement edges.
include_memories: Option<bool>Emit source memory nodes + mentions edges.
include_memory_edges: Option<bool>Emit the stored memory↔memory edges (similar_to, followed_by, …)
between the page’s memory nodes. Requires include_memories; asking
for it alone is rejected up front rather than by the server, so the
caller gets a 400 naming the missing layer instead of a wire error.
include_tombstoned: Option<bool>Include tombstoned statements/relations (default false).
Implementations§
Source§impl GraphFetchQuery
impl GraphFetchQuery
pub fn to_request(&self) -> Result<GraphFetchRequest, String>
Trait Implementations§
Source§impl Debug for GraphFetchQuery
impl Debug for GraphFetchQuery
Source§impl<'de> Deserialize<'de> for GraphFetchQuery
impl<'de> Deserialize<'de> for GraphFetchQuery
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
Auto Trait Implementations§
impl Freeze for GraphFetchQuery
impl RefUnwindSafe for GraphFetchQuery
impl Send for GraphFetchQuery
impl Sync for GraphFetchQuery
impl Unpin for GraphFetchQuery
impl UnsafeUnpin for GraphFetchQuery
impl UnwindSafe for GraphFetchQuery
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