pub struct StorageConfigBuilder { /* private fields */ }
Expand description
Builder for creating storage configurations
Implementations§
Source§impl StorageConfigBuilder
impl StorageConfigBuilder
Sourcepub fn memory() -> StorageConfigBuilder
pub fn memory() -> StorageConfigBuilder
Create a memory storage builder
Sourcepub fn sqlite(database_path: impl Into<String>) -> StorageConfigBuilder
pub fn sqlite(database_path: impl Into<String>) -> StorageConfigBuilder
Create a SQLite storage builder
Sourcepub fn qdrant(
url: impl Into<String>,
collection: impl Into<String>,
) -> StorageConfigBuilder
pub fn qdrant( url: impl Into<String>, collection: impl Into<String>, ) -> StorageConfigBuilder
Create a Qdrant storage builder
Sourcepub fn with_initial_capacity(self, capacity: usize) -> StorageConfigBuilder
pub fn with_initial_capacity(self, capacity: usize) -> StorageConfigBuilder
Set initial capacity for memory storage
Sourcepub fn with_api_key(self, api_key: impl Into<String>) -> StorageConfigBuilder
pub fn with_api_key(self, api_key: impl Into<String>) -> StorageConfigBuilder
Set API key for Qdrant
Sourcepub fn with_tls(self, enable: bool) -> StorageConfigBuilder
pub fn with_tls(self, enable: bool) -> StorageConfigBuilder
Enable TLS for Qdrant
Sourcepub fn build(self) -> StorageConfig
pub fn build(self) -> StorageConfig
Build the configuration
Auto Trait Implementations§
impl Freeze for StorageConfigBuilder
impl RefUnwindSafe for StorageConfigBuilder
impl Send for StorageConfigBuilder
impl Sync for StorageConfigBuilder
impl Unpin for StorageConfigBuilder
impl UnwindSafe for StorageConfigBuilder
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> 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>
Converts
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>
Converts
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 more