pub struct QdrantServerlessBuilder { /* private fields */ }Expand description
Builder for QdrantServerless.
Defaults differ from the regular Qdrant client:
- compatibility checks are skipped (serverless has no matching server version)
- URLs without an explicit port default to port
DEFAULT_SERVERLESS_GRPC_PORT(443)
Implementations§
Source§impl QdrantServerlessBuilder
§Construct and connect
impl QdrantServerlessBuilder
§Construct and connect
Sourcepub fn api_key(self, api_key: impl AsOptionApiKey) -> Self
pub fn api_key(self, api_key: impl AsOptionApiKey) -> Self
Set an optional API key (sent as api-key metadata).
Sourcepub fn connect_timeout(self, timeout: impl AsTimeout) -> Self
pub fn connect_timeout(self, timeout: impl AsTimeout) -> Self
Set the connect timeout.
Sourcepub fn compression(self, compression: Option<CompressionEncoding>) -> Self
pub fn compression(self, compression: Option<CompressionEncoding>) -> Self
Set optional request compression.
Sourcepub fn header(self, key: impl Into<String>, value: impl Into<String>) -> Self
pub fn header(self, key: impl Into<String>, value: impl Into<String>) -> Self
Add a custom header to send with every request.
Sourcepub fn keep_alive_while_idle(self) -> Self
pub fn keep_alive_while_idle(self) -> Self
Keep idle connections alive.
Sourcepub fn build(self) -> Result<QdrantServerless, QdrantError>
pub fn build(self) -> Result<QdrantServerless, QdrantError>
Build the configured QdrantServerless client.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QdrantServerlessBuilder
impl RefUnwindSafe for QdrantServerlessBuilder
impl Send for QdrantServerlessBuilder
impl Sync for QdrantServerlessBuilder
impl Unpin for QdrantServerlessBuilder
impl UnsafeUnpin for QdrantServerlessBuilder
impl UnwindSafe for QdrantServerlessBuilder
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