Skip to content

Commit

Permalink
Make payload (de)serialization transparent
Browse files Browse the repository at this point in the history
  • Loading branch information
timvisee committed Jun 26, 2024
1 parent 39953b5 commit e8ed9d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ use crate::qdrant::Value;
/// ```
#[derive(Clone, PartialEq, Debug, Default)]
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[cfg_attr(feature = "serde", serde(transparent))]
pub struct Payload(pub(crate) HashMap<String, Value>);

impl Payload {
Expand Down

0 comments on commit e8ed9d1

Please sign in to comment.