qdrant-client 1.17.0

Rust client for Qdrant Vector Search Engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::collections::HashMap;

use crate::qdrant::Value;

/// Proxy structure for simpler conversion from `HashMap<String, serde_json::Value>` to `HashMap<String, Value>`.
pub struct MetadataWrapper(pub HashMap<String, Value>);

#[cfg(feature = "serde")]
impl From<HashMap<String, serde_json::Value>> for MetadataWrapper {
    fn from(value: HashMap<String, serde_json::Value>) -> Self {
        Self(value.into_iter().map(|(k, v)| (k, v.into())).collect())
    }
}