pub struct TraceDbAsyncClient { /* private fields */ }Expand description
Asynchronous HTTP client for TraceDB.
Implementations§
Source§impl TraceDbAsyncClient
impl TraceDbAsyncClient
pub fn new(config: TraceDbClientConfig) -> Self
pub fn from_blocking(client: TraceDbClient) -> Self
pub fn blocking_client(&self) -> &TraceDbClient
pub async fn request_json( &self, method: &str, path: &str, body: Option<&Value>, ) -> TraceDbClientResult<Value>
pub async fn request_json_with_options( &self, method: &str, path: &str, body: Option<&Value>, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<Value>
pub async fn ready(&self) -> TraceDbClientResult<Value>
pub async fn ready_typed(&self) -> TraceDbClientResult<ReadyResponse>
pub async fn health(&self) -> TraceDbClientResult<Value>
pub async fn health_typed(&self) -> TraceDbClientResult<HealthResponse>
pub async fn list_databases_typed( &self, ) -> TraceDbClientResult<DatabasesResponse>
pub async fn list_branches_typed(&self) -> TraceDbClientResult<BranchesResponse>
pub async fn public_safe_metrics_typed( &self, ) -> TraceDbClientResult<MetricsResponse>
pub async fn list_admin_jobs_typed(&self) -> TraceDbClientResult<JobsResponse>
pub async fn apply_schema_typed( &self, schema: &TableSchema, ) -> TraceDbClientResult<EpochResponse>
pub async fn apply_schema_typed_with_options( &self, schema: &TableSchema, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<EpochResponse>
pub async fn put_typed( &self, record: &RecordInput, ) -> TraceDbClientResult<EpochResponse>
pub async fn put_typed_with_options( &self, record: &RecordInput, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<EpochResponse>
pub async fn put_batch_typed( &self, request: &RecordPutBatchRequest, ) -> TraceDbClientResult<PutBatchResponse>
pub async fn put_batch_typed_with_options( &self, request: &RecordPutBatchRequest, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<PutBatchResponse>
pub async fn patch_typed( &self, request: &RecordPatchRequest, ) -> TraceDbClientResult<EpochResponse>
pub async fn patch_typed_with_options( &self, request: &RecordPatchRequest, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<EpochResponse>
pub async fn delete_typed( &self, request: &RecordDeleteRequest, ) -> TraceDbClientResult<DeleteResponse>
pub async fn delete_typed_with_options( &self, request: &RecordDeleteRequest, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<DeleteResponse>
pub async fn get_record_typed( &self, request: &RecordGetRequest, ) -> TraceDbClientResult<GetRecordResponse>
pub async fn scan_typed( &self, request: &RecordScanRequest, ) -> TraceDbClientResult<RecordScanOutput>
pub async fn query_typed( &self, query: &HybridQuery, ) -> TraceDbClientResult<QueryResponse>
pub async fn traceql_typed( &self, query: impl Into<String>, ) -> TraceDbClientResult<QueryResponse>
pub async fn graphql_typed( &self, query: impl Into<String>, ) -> TraceDbClientResult<GraphQlResponse>
pub async fn bounded_graphql_typed( &self, query: impl Into<String>, ) -> TraceDbClientResult<QueryResponse>
pub async fn graphql_schema_typed( &self, ) -> TraceDbClientResult<GraphQlSchemaResponse>
pub async fn explain_typed( &self, query: &HybridQuery, ) -> TraceDbClientResult<HybridExplain>
pub async fn compact_typed(&self) -> TraceDbClientResult<CompactResponse>
pub async fn compact_typed_with_options( &self, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<CompactResponse>
pub async fn snapshot_typed( &self, request: &SnapshotRequest, ) -> TraceDbClientResult<SnapshotResponse>
pub async fn snapshot_typed_with_options( &self, request: &SnapshotRequest, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<SnapshotResponse>
pub async fn restore_typed( &self, request: &RestoreRequest, ) -> TraceDbClientResult<RestoreResponse>
pub async fn restore_typed_with_options( &self, request: &RestoreRequest, options: &TraceDbRequestOptions, ) -> TraceDbClientResult<RestoreResponse>
Trait Implementations§
Source§impl Clone for TraceDbAsyncClient
impl Clone for TraceDbAsyncClient
Source§fn clone(&self) -> TraceDbAsyncClient
fn clone(&self) -> TraceDbAsyncClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TraceDbAsyncClient
impl !RefUnwindSafe for TraceDbAsyncClient
impl Send for TraceDbAsyncClient
impl Sync for TraceDbAsyncClient
impl Unpin for TraceDbAsyncClient
impl UnsafeUnpin for TraceDbAsyncClient
impl !UnwindSafe for TraceDbAsyncClient
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