#[non_exhaustive]pub struct QdrantConfig { /* private fields */ }Expand description
Qdrant connection config — re-exported at the crate root so callers
configuring AppBuilder::qdrant_with
reach it as klieo::QdrantConfig without a direct dependency on the
klieo-memory-qdrant adapter crate.
Enabled by the memory-qdrant feature flag.
Configuration for MemoryQdrant.
api_key is a SecretString (W2.A9): Debug redacts the value,
Drop zeroises it. Operators can pass any Into<SecretString> (a
String or another SecretString); expose_secret() is only
invoked at the Qdrant::from_url builder boundary.
Implementations§
Source§impl QdrantConfig
impl QdrantConfig
Sourcepub fn new(url: impl Into<String>) -> QdrantConfig
pub fn new(url: impl Into<String>) -> QdrantConfig
Build a config from a Qdrant gRPC endpoint URL.
Sourcepub fn with_api_key(self, key: impl Into<SecretBox<str>>) -> QdrantConfig
pub fn with_api_key(self, key: impl Into<SecretBox<str>>) -> QdrantConfig
Set the API key used in api-key headers.
Sourcepub fn with_collection_prefix(self, prefix: impl Into<String>) -> QdrantConfig
pub fn with_collection_prefix(self, prefix: impl Into<String>) -> QdrantConfig
Override the collection-name prefix (default klieo_facts).
Sourcepub fn allow_plaintext_remote(self) -> QdrantConfig
pub fn allow_plaintext_remote(self) -> QdrantConfig
Explicitly allow http:// to non-loopback hosts. Use only when
Qdrant runs inside a sealed pod network (mesh-mTLS) or behind a
TLS-terminating sidecar. Otherwise the api-key + collection
payloads transit in cleartext (W2.A11).
Sourcepub fn with_embedder_id(self, id: impl Into<String>) -> QdrantConfig
pub fn with_embedder_id(self, id: impl Into<String>) -> QdrantConfig
Set the embedder identifier this store is provisioned for. M2
GraphAwareLongTerm calls recall_filtered_checked with the
caller’s embedder id and hard-fails on mismatch — silent
semantic drift across embedder versions is far worse than a
typed error at the seam.
Sourcepub fn embedder_id(&self) -> &str
pub fn embedder_id(&self) -> &str
Embedder identifier configured for this store. Returns
"default" unless overridden via Self::with_embedder_id.
Trait Implementations§
Source§impl Clone for QdrantConfig
impl Clone for QdrantConfig
Source§fn clone(&self) -> QdrantConfig
fn clone(&self) -> QdrantConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for QdrantConfig
impl RefUnwindSafe for QdrantConfig
impl Send for QdrantConfig
impl Sync for QdrantConfig
impl Unpin for QdrantConfig
impl UnsafeUnpin for QdrantConfig
impl UnwindSafe for QdrantConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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