Skip to main content

Request

Enum Request 

Source
pub enum Request {
Show 34 variants CreateNode { labels: Vec<String>, properties: Value, embedding: Option<Vec<f32>>, }, CreateEdge { source: u64, target: u64, edge_type: String, properties: Value, weight: f64, valid_from: Option<i64>, valid_to: Option<i64>, }, GetNode { id: u64, }, GetEdge { id: u64, }, UpdateNode { id: u64, properties: Value, }, UpdateEdge { id: u64, properties: Value, }, DeleteNode { id: u64, }, DeleteEdge { id: u64, }, Neighbors { id: u64, direction: String, edge_type: Option<String>, }, Bfs { start: u64, max_depth: usize, }, ShortestPath { from: u64, to: u64, weighted: bool, }, VectorSearch { query: Vec<f32>, k: usize, }, HybridSearch { anchor: u64, query: Vec<f32>, max_hops: usize, k: usize, alpha: f32, }, SemanticNeighbors { id: u64, concept: Vec<f32>, direction: String, k: usize, }, SemanticWalk { start: u64, concept: Vec<f32>, max_hops: usize, }, Query { gql: String, }, ExtractSubgraph { center: u64, hops: usize, max_nodes: usize, format: String, }, GraphRag { question: String, question_embedding: Option<Vec<f32>>, anchor: Option<u64>, hops: usize, max_nodes: usize, format: String, }, NeighborsAt { id: u64, direction: String, timestamp: i64, edge_type: Option<String>, }, BfsAt { start: u64, max_depth: usize, timestamp: i64, }, ShortestPathAt { from: u64, to: u64, timestamp: i64, weighted: bool, }, Dfs { start: u64, max_depth: usize, }, DfsAt { start: u64, max_depth: usize, timestamp: i64, }, FindByLabel { label: String, }, DeleteByLabel { label: String, }, FindEdgeByType { edge_type: String, }, RunPageRank { nodes: Option<Vec<u64>>, damping: f64, max_iterations: usize, tolerance: f64, }, RunLouvain { nodes: Option<Vec<u64>>, }, RunConnectedComponents { nodes: Option<Vec<u64>>, strong: bool, }, RunDegreeCentrality { nodes: Option<Vec<u64>>, direction: String, }, RunBetweennessCentrality { nodes: Option<Vec<u64>>, }, GraphStats, GetSubgraph { center: u64, hops: usize, max_nodes: usize, }, Ping,
}
Expand description

Client request sent over the wire.

Variants§

§

CreateNode

Create a new node.

Fields

§labels: Vec<String>
§properties: Value
§embedding: Option<Vec<f32>>
§

CreateEdge

Create a new edge between two nodes.

Fields

§source: u64
§target: u64
§edge_type: String
§properties: Value
§weight: f64
§valid_from: Option<i64>

Optional temporal validity start (epoch milliseconds, inclusive).

§valid_to: Option<i64>

Optional temporal validity end (epoch milliseconds, exclusive).

§

GetNode

Get a node by ID.

Fields

§id: u64
§

GetEdge

Get an edge by ID.

Fields

§id: u64
§

UpdateNode

Update a node’s properties.

Fields

§id: u64
§properties: Value
§

UpdateEdge

Update an edge’s properties.

Fields

§id: u64
§properties: Value
§

DeleteNode

Delete a node (and its edges).

Fields

§id: u64
§

DeleteEdge

Delete an edge.

Fields

§id: u64
§

Neighbors

Get neighbors of a node.

Fields

§id: u64
§direction: String
§edge_type: Option<String>
§

Bfs

Run a BFS traversal.

Fields

§start: u64
§max_depth: usize
§

ShortestPath

Find shortest path between two nodes.

Fields

§from: u64
§to: u64
§weighted: bool
§

VectorSearch

Vector similarity search.

Fields

§query: Vec<f32>
§

HybridSearch

Hybrid search combining graph proximity and vector similarity.

Fields

§anchor: u64
§query: Vec<f32>
§max_hops: usize
§alpha: f32
§

SemanticNeighbors

Rank neighbors by semantic similarity to a concept embedding.

Fields

§id: u64
§concept: Vec<f32>
§direction: String
§

SemanticWalk

Greedy multi-hop walk toward a semantic concept.

Fields

§start: u64
§concept: Vec<f32>
§max_hops: usize
§

Query

Execute a GQL query string.

Fields

§

ExtractSubgraph

Extract a subgraph around a node and linearize it.

Fields

§center: u64
§hops: usize
§max_nodes: usize
§format: String
§

GraphRag

Execute a GraphRAG query (requires LLM provider configuration).

Fields

§question: String
§question_embedding: Option<Vec<f32>>
§anchor: Option<u64>
§hops: usize
§max_nodes: usize
§format: String
§

NeighborsAt

Get neighbors of a node at a specific point in time.

Fields

§id: u64
§direction: String
§timestamp: i64
§edge_type: Option<String>
§

BfsAt

Run a BFS traversal at a specific point in time.

Fields

§start: u64
§max_depth: usize
§timestamp: i64
§

ShortestPathAt

Find shortest path at a specific point in time.

Fields

§from: u64
§to: u64
§timestamp: i64
§weighted: bool
§

Dfs

Depth-first search traversal.

Fields

§start: u64
§max_depth: usize
§

DfsAt

Depth-first search traversal at a specific point in time.

Fields

§start: u64
§max_depth: usize
§timestamp: i64
§

FindByLabel

Find nodes by label.

Fields

§label: String
§

DeleteByLabel

Delete every node carrying the given label (and all its edges). Returns {"deleted": N}. astraeadb-issues.md #4.

Fields

§label: String
§

FindEdgeByType

Find all edges whose edge_type matches the given string. Returns {"edges": [{"edge_id": N, "source": N, "target": N}, ...]}. astraeadb-issues.md #3.

Fields

§edge_type: String
§

RunPageRank

Run PageRank algorithm.

Fields

§nodes: Option<Vec<u64>>
§damping: f64
§max_iterations: usize
§tolerance: f64
§

RunLouvain

Run Louvain community detection.

Fields

§nodes: Option<Vec<u64>>
§

RunConnectedComponents

Run connected components detection.

Fields

§nodes: Option<Vec<u64>>
§strong: bool
§

RunDegreeCentrality

Run degree centrality.

Fields

§nodes: Option<Vec<u64>>
§direction: String
§

RunBetweennessCentrality

Run betweenness centrality.

Fields

§nodes: Option<Vec<u64>>
§

GraphStats

Get graph statistics.

§

GetSubgraph

Get raw subgraph (nodes + edges) for visualization.

Fields

§center: u64
§hops: usize
§max_nodes: usize
§

Ping

Server status / health check.

Trait Implementations§

Source§

impl Clone for Request

Source§

fn clone(&self) -> Request

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Request

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Request

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for Request

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

Source§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

Source§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

Source§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more