pub struct GraphStoreServiceClient<T> { /* private fields */ }Expand description
/ Service for distributed graph store operations.
Implementations§
Source§impl<T> GraphStoreServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> GraphStoreServiceClient<T>where
T: GrpcService<Body>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> GraphStoreServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<Body>, Response = Response<<T as GrpcService<Body>>::ResponseBody>>,
<T as Service<Request<Body>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn insert_node(
&mut self,
request: impl IntoRequest<InsertNodeRequest>,
) -> Result<Response<InsertNodeResponse>, Status>
pub async fn insert_node( &mut self, request: impl IntoRequest<InsertNodeRequest>, ) -> Result<Response<InsertNodeResponse>, Status>
Insert a node without a vector
Sourcepub async fn insert_node_with_vector(
&mut self,
request: impl IntoRequest<InsertNodeWithVectorRequest>,
) -> Result<Response<InsertNodeWithVectorResponse>, Status>
pub async fn insert_node_with_vector( &mut self, request: impl IntoRequest<InsertNodeWithVectorRequest>, ) -> Result<Response<InsertNodeWithVectorResponse>, Status>
Insert a node with its embedding vector
Sourcepub async fn insert_nodes_with_vector(
&mut self,
request: impl IntoRequest<InsertNodesWithVectorRequest>,
) -> Result<Response<InsertNodesWithVectorResponse>, Status>
pub async fn insert_nodes_with_vector( &mut self, request: impl IntoRequest<InsertNodesWithVectorRequest>, ) -> Result<Response<InsertNodesWithVectorResponse>, Status>
Batch insert nodes with their embedding vectors
Sourcepub async fn get_node(
&mut self,
request: impl IntoRequest<GetNodeRequest>,
) -> Result<Response<GetNodeResponse>, Status>
pub async fn get_node( &mut self, request: impl IntoRequest<GetNodeRequest>, ) -> Result<Response<GetNodeResponse>, Status>
Get a node by its ID
Sourcepub async fn delete_node(
&mut self,
request: impl IntoRequest<DeleteNodeRequest>,
) -> Result<Response<DeleteNodeResponse>, Status>
pub async fn delete_node( &mut self, request: impl IntoRequest<DeleteNodeRequest>, ) -> Result<Response<DeleteNodeResponse>, Status>
Delete a node by its ID
Sourcepub async fn insert_edge(
&mut self,
request: impl IntoRequest<InsertEdgeRequest>,
) -> Result<Response<InsertEdgeResponse>, Status>
pub async fn insert_edge( &mut self, request: impl IntoRequest<InsertEdgeRequest>, ) -> Result<Response<InsertEdgeResponse>, Status>
Insert an edge without a vector
Sourcepub async fn insert_edge_with_vector(
&mut self,
request: impl IntoRequest<InsertEdgeWithVectorRequest>,
) -> Result<Response<InsertEdgeWithVectorResponse>, Status>
pub async fn insert_edge_with_vector( &mut self, request: impl IntoRequest<InsertEdgeWithVectorRequest>, ) -> Result<Response<InsertEdgeWithVectorResponse>, Status>
Insert an edge with its embedding vector
Sourcepub async fn insert_edges_with_vector(
&mut self,
request: impl IntoRequest<InsertEdgesWithVectorRequest>,
) -> Result<Response<InsertEdgesWithVectorResponse>, Status>
pub async fn insert_edges_with_vector( &mut self, request: impl IntoRequest<InsertEdgesWithVectorRequest>, ) -> Result<Response<InsertEdgesWithVectorResponse>, Status>
Batch insert edges with their embedding vectors
Sourcepub async fn get_edge(
&mut self,
request: impl IntoRequest<GetEdgeRequest>,
) -> Result<Response<GetEdgeResponse>, Status>
pub async fn get_edge( &mut self, request: impl IntoRequest<GetEdgeRequest>, ) -> Result<Response<GetEdgeResponse>, Status>
Get an edge by its ID
Sourcepub async fn get_edges_for_node(
&mut self,
request: impl IntoRequest<GetEdgesForNodeRequest>,
) -> Result<Response<GetEdgesForNodeResponse>, Status>
pub async fn get_edges_for_node( &mut self, request: impl IntoRequest<GetEdgesForNodeRequest>, ) -> Result<Response<GetEdgesForNodeResponse>, Status>
Get all edges originating from a node
Sourcepub async fn get_edges_targeting_node(
&mut self,
request: impl IntoRequest<GetEdgesTargetingNodeRequest>,
) -> Result<Response<GetEdgesTargetingNodeResponse>, Status>
pub async fn get_edges_targeting_node( &mut self, request: impl IntoRequest<GetEdgesTargetingNodeRequest>, ) -> Result<Response<GetEdgesTargetingNodeResponse>, Status>
Get all edges targeting a node
Sourcepub async fn delete_edge(
&mut self,
request: impl IntoRequest<DeleteEdgeRequest>,
) -> Result<Response<DeleteEdgeResponse>, Status>
pub async fn delete_edge( &mut self, request: impl IntoRequest<DeleteEdgeRequest>, ) -> Result<Response<DeleteEdgeResponse>, Status>
Delete an edge by its ID
Sourcepub async fn get_edge_vector(
&mut self,
request: impl IntoRequest<GetEdgeVectorRequest>,
) -> Result<Response<GetEdgeVectorResponse>, Status>
pub async fn get_edge_vector( &mut self, request: impl IntoRequest<GetEdgeVectorRequest>, ) -> Result<Response<GetEdgeVectorResponse>, Status>
Get the embedding vector for an edge
Sourcepub async fn get_node_vector(
&mut self,
request: impl IntoRequest<GetNodeVectorRequest>,
) -> Result<Response<GetNodeVectorResponse>, Status>
pub async fn get_node_vector( &mut self, request: impl IntoRequest<GetNodeVectorRequest>, ) -> Result<Response<GetNodeVectorResponse>, Status>
Get the embedding vector for a node
Sourcepub async fn set_name_mapping(
&mut self,
request: impl IntoRequest<SetNameMappingRequest>,
) -> Result<Response<SetNameMappingResponse>, Status>
pub async fn set_name_mapping( &mut self, request: impl IntoRequest<SetNameMappingRequest>, ) -> Result<Response<SetNameMappingResponse>, Status>
Set a name-to-node mapping for a given kind
Sourcepub async fn get_name_mapping(
&mut self,
request: impl IntoRequest<GetNameMappingRequest>,
) -> Result<Response<GetNameMappingResponse>, Status>
pub async fn get_name_mapping( &mut self, request: impl IntoRequest<GetNameMappingRequest>, ) -> Result<Response<GetNameMappingResponse>, Status>
Get the node ID for a name mapping
Sourcepub async fn delete_name_mapping(
&mut self,
request: impl IntoRequest<DeleteNameMappingRequest>,
) -> Result<Response<DeleteNameMappingResponse>, Status>
pub async fn delete_name_mapping( &mut self, request: impl IntoRequest<DeleteNameMappingRequest>, ) -> Result<Response<DeleteNameMappingResponse>, Status>
Delete a name-to-node mapping
Sourcepub async fn search(
&mut self,
request: impl IntoRequest<SearchRequest>,
) -> Result<Response<SearchResponse>, Status>
pub async fn search( &mut self, request: impl IntoRequest<SearchRequest>, ) -> Result<Response<SearchResponse>, Status>
Perform a vector similarity search over nodes and/or edges
Trait Implementations§
Source§impl<T: Clone> Clone for GraphStoreServiceClient<T>
impl<T: Clone> Clone for GraphStoreServiceClient<T>
Source§fn clone(&self) -> GraphStoreServiceClient<T>
fn clone(&self) -> GraphStoreServiceClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for GraphStoreServiceClient<T>
impl<T> RefUnwindSafe for GraphStoreServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for GraphStoreServiceClient<T>where
T: Send,
impl<T> Sync for GraphStoreServiceClient<T>where
T: Sync,
impl<T> Unpin for GraphStoreServiceClient<T>where
T: Unpin,
impl<T> UnsafeUnpin for GraphStoreServiceClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for GraphStoreServiceClient<T>where
T: UnwindSafe,
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,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request