pub struct QdrantConfig {
pub host: String,
pub port: u16,
pub api_key: Option<String>,
pub use_https: bool,
}Expand description
Qdrant 向量数据库配置
§示例
use admin_config::{QdrantConfig, ToConnectionUrl};
let config = QdrantConfig::default();
assert_eq!(config.port, 6333);Fields§
§host: String主机地址
port: u16端口
api_key: Option<String>API Key
use_https: bool是否使用 HTTPS
Trait Implementations§
Source§impl Clone for QdrantConfig
impl Clone for QdrantConfig
Source§fn clone(&self) -> QdrantConfig
fn clone(&self) -> QdrantConfig
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 QdrantConfig
impl Debug for QdrantConfig
Source§impl Default for QdrantConfig
impl Default for QdrantConfig
Source§impl<'de> Deserialize<'de> for QdrantConfig
impl<'de> Deserialize<'de> for QdrantConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for QdrantConfig
impl Serialize for QdrantConfig
Source§impl ToConnectionUrl for QdrantConfig
impl ToConnectionUrl for QdrantConfig
Source§fn to_connection_url(&self) -> String
fn to_connection_url(&self) -> String
生成数据库连接 URL
Auto Trait Implementations§
impl Freeze for QdrantConfig
impl RefUnwindSafe for QdrantConfig
impl Send for QdrantConfig
impl Sync for QdrantConfig
impl Unpin 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
Mutably borrows from an owned value. Read more