pub struct MilvusConfig {
pub endpoint: String,
pub collection: String,
pub api_key: Option<String>,
pub dim: usize,
}Expand description
Configuration for connecting to a Milvus instance.
Fields§
§endpoint: StringMilvus endpoint URL (e.g., http://localhost:19530).
collection: StringCollection name to store documents in.
api_key: Option<String>Optional API key for Zilliz Cloud authentication.
dim: usizeVector dimension (must match your embedding model).
Implementations§
Trait Implementations§
Source§impl Clone for MilvusConfig
impl Clone for MilvusConfig
Source§fn clone(&self) -> MilvusConfig
fn clone(&self) -> MilvusConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MilvusConfig
impl RefUnwindSafe for MilvusConfig
impl Send for MilvusConfig
impl Sync for MilvusConfig
impl Unpin for MilvusConfig
impl UnsafeUnpin for MilvusConfig
impl UnwindSafe for MilvusConfig
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