pub struct OpenSearchConfig {
pub endpoint: String,
pub index: String,
pub dim: usize,
pub username: Option<String>,
pub password: Option<String>,
}Expand description
Configuration for connecting to an OpenSearch cluster.
Fields§
§endpoint: StringOpenSearch endpoint URL (e.g., http://localhost:9200).
index: StringIndex name to store documents in.
dim: usizeVector dimension (must match your embedding model).
username: Option<String>Optional username for HTTP Basic Auth.
password: Option<String>Optional password for HTTP Basic Auth.
Implementations§
Trait Implementations§
Source§impl Clone for OpenSearchConfig
impl Clone for OpenSearchConfig
Source§fn clone(&self) -> OpenSearchConfig
fn clone(&self) -> OpenSearchConfig
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 OpenSearchConfig
impl RefUnwindSafe for OpenSearchConfig
impl Send for OpenSearchConfig
impl Sync for OpenSearchConfig
impl Unpin for OpenSearchConfig
impl UnsafeUnpin for OpenSearchConfig
impl UnwindSafe for OpenSearchConfig
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