#[non_exhaustive]pub struct QdrantConfig { /* private fields */ }Expand description
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 with_api_key(self, key: impl Into<SecretString>) -> Self
pub fn with_api_key(self, key: impl Into<SecretString>) -> Self
Set the API key used in api-key headers.
Sourcepub fn with_collection_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_collection_prefix(self, prefix: impl Into<String>) -> Self
Override the collection-name prefix (default klieo_facts).
Sourcepub fn allow_plaintext_remote(self) -> Self
pub fn allow_plaintext_remote(self) -> Self
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>) -> Self
pub fn with_embedder_id(self, id: impl Into<String>) -> Self
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> 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>
T in a tonic::Request