pub struct KnowledgeGraphServiceClient<T> { /* private fields */ }Implementations§
Source§impl<T> KnowledgeGraphServiceClient<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> KnowledgeGraphServiceClient<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,
) -> KnowledgeGraphServiceClient<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
pub async fn upsert_namespace( &mut self, request: impl IntoRequest<UpsertNamespaceRequest>, ) -> Result<Response<UpsertNamespaceResponse>, Status>
pub async fn list_namespaces( &mut self, request: impl IntoRequest<ListNamespacesRequest>, ) -> Result<Response<ListNamespacesResponse>, Status>
pub async fn upsert_knowledge_graph( &mut self, request: impl IntoRequest<UpsertKnowledgeGraphRequest>, ) -> Result<Response<UpsertKnowledgeGraphResponse>, Status>
pub async fn find_knowledge_graph( &mut self, request: impl IntoRequest<FindKnowledgeGraphRequest>, ) -> Result<Response<FindKnowledgeGraphResponse>, Status>
pub async fn delete_knowledge_graph( &mut self, request: impl IntoRequest<DeleteKnowledgeGraphRequest>, ) -> Result<Response<DeleteKnowledgeGraphResponse>, Status>
pub async fn import_knowledge_graph( &mut self, request: impl IntoRequest<ImportKnowledgeGraphRequest>, ) -> Result<Response<ImportKnowledgeGraphResponse>, Status>
pub async fn export_knowledge_graph( &mut self, request: impl IntoRequest<ExportKnowledgeGraphRequest>, ) -> Result<Response<ExportKnowledgeGraphResponse>, Status>
pub async fn query_sparql( &mut self, request: impl IntoRequest<QuerySparqlRequest>, ) -> Result<Response<QuerySparqlResponse>, Status>
pub async fn validate_shacl( &mut self, request: impl IntoRequest<ValidateShaclRequest>, ) -> Result<Response<ValidateShaclResponse>, Status>
pub async fn refresh_inference( &mut self, request: impl IntoRequest<RefreshInferenceRequest>, ) -> Result<Response<RefreshInferenceResponse>, Status>
pub async fn summarize_inference( &mut self, request: impl IntoRequest<SummarizeInferenceRequest>, ) -> Result<Response<SummarizeInferenceResponse>, Status>
pub async fn explain_inference( &mut self, request: impl IntoRequest<ExplainInferenceRequest>, ) -> Result<Response<ExplainInferenceResponse>, Status>
pub async fn explain_inference_match( &mut self, request: impl IntoRequest<ExplainInferenceMatchRequest>, ) -> Result<Response<ExplainInferenceMatchResponse>, Status>
pub async fn save_ontology_schema( &mut self, request: impl IntoRequest<SaveOntologySchemaRequest>, ) -> Result<Response<SaveOntologySchemaResponse>, Status>
pub async fn get_ontology_schema( &mut self, request: impl IntoRequest<GetOntologySchemaRequest>, ) -> Result<Response<GetOntologySchemaResponse>, Status>
pub async fn list_ontology_schemas( &mut self, request: impl IntoRequest<ListOntologySchemasRequest>, ) -> Result<Response<ListOntologySchemasResponse>, Status>
pub async fn delete_ontology_schema( &mut self, request: impl IntoRequest<DeleteOntologySchemaRequest>, ) -> Result<Response<DeleteOntologySchemaResponse>, Status>
Trait Implementations§
Source§impl<T: Clone> Clone for KnowledgeGraphServiceClient<T>
impl<T: Clone> Clone for KnowledgeGraphServiceClient<T>
Auto Trait Implementations§
impl<T> !Freeze for KnowledgeGraphServiceClient<T>
impl<T> RefUnwindSafe for KnowledgeGraphServiceClient<T>where
Grpc<T>: RefUnwindSafe,
impl<T> Send for KnowledgeGraphServiceClient<T>
impl<T> Sync for KnowledgeGraphServiceClient<T>
impl<T> Unpin for KnowledgeGraphServiceClient<T>
impl<T> UnsafeUnpin for KnowledgeGraphServiceClient<T>where
Grpc<T>: UnsafeUnpin,
impl<T> UnwindSafe for KnowledgeGraphServiceClient<T>where
Grpc<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
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<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>
Wrap the input message
T in a tonic::Request