pub struct ClientConfig {
pub server_address: String,
pub use_tls: bool,
pub api_key: Option<String>,
pub ca_cert_path: Option<PathBuf>,
}
Expand description
VectorDB client configuration
Fields§
§server_address: String
Server address (host:port)
use_tls: bool
Use TLS for connection
api_key: Option<String>
API key for authentication
ca_cert_path: Option<PathBuf>
CA certificate path for TLS
Implementations§
Source§impl ClientConfig
impl ClientConfig
Sourcepub fn with_api_key<S: Into<String>>(self, api_key: S) -> Self
pub fn with_api_key<S: Into<String>>(self, api_key: S) -> Self
Set API key
Sourcepub fn with_ca_cert<P: Into<PathBuf>>(self, ca_cert_path: P) -> Self
pub fn with_ca_cert<P: Into<PathBuf>>(self, ca_cert_path: P) -> Self
Set CA certificate path
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
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 moreSource§impl Debug for ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§impl From<&ClientConfig> for SerializableClientConfig
impl From<&ClientConfig> for SerializableClientConfig
Source§fn from(config: &ClientConfig) -> Self
fn from(config: &ClientConfig) -> Self
Converts to this type from the input type.
Source§impl From<SerializableClientConfig> for ClientConfig
impl From<SerializableClientConfig> for ClientConfig
Source§fn from(config: SerializableClientConfig) -> Self
fn from(config: SerializableClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
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> 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>
Wrap the input message
T
in a tonic::Request