docs: Rust client usage update (#497)

* docs: explore updates rust-client

* docs: rust client usage fixes
This commit is contained in:
Anush
2024-01-04 17:17:24 +05:30
committed by GitHub
parent dc402ac2f2
commit 6b824222bb
4 changed files with 125 additions and 3 deletions
@@ -68,3 +68,26 @@ var client = new QdrantClient(
apiKey: "<paste-your-api-key-here>"
);
```
```rust
use qdrant_client::client::QdrantClient;
let client = QdrantClient::from_url("xyz-example.eu-central.aws.cloud.qdrant.io:6334")
.with_api_key("<paste-your-api-key-here>")
.build()
.unwrap();
```
```java
import io.qdrant.client.QdrantClient;
import io.qdrant.client.QdrantGrpcClient;
QdrantClient client =
new QdrantClient(
QdrantGrpcClient.newBuilder(
"xyz-example.eu-central.aws.cloud.qdrant.io",
6334,
true)
.withApiKey("<paste-your-api-key-here>")
.build());
```