From d2ecc770149e6b48eeb42cca7f67ded70d3bef1d Mon Sep 17 00:00:00 2001 From: Michael Goldenberg Date: Thu, 14 Aug 2025 10:14:18 -0400 Subject: [PATCH] feat(linked chunk): derive ser/de traits for OwnedLinkedChunkId Signed-off-by: Michael Goldenberg --- crates/matrix-sdk-common/src/linked_chunk/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/matrix-sdk-common/src/linked_chunk/mod.rs b/crates/matrix-sdk-common/src/linked_chunk/mod.rs index a7bd5e7d2..6be537145 100644 --- a/crates/matrix-sdk-common/src/linked_chunk/mod.rs +++ b/crates/matrix-sdk-common/src/linked_chunk/mod.rs @@ -107,6 +107,7 @@ use std::{ pub use as_vector::*; pub use order_tracker::OrderTracker; use ruma::{EventId, OwnedEventId, OwnedRoomId, RoomId}; +use serde::{Deserialize, Serialize}; pub use updates::*; /// An identifier for a linked chunk; borrowed variant. @@ -171,7 +172,7 @@ impl PartialEq> for OwnedLinkedChunkId { } /// An identifier for a linked chunk; owned variant. -#[derive(Clone, Debug, PartialEq, Eq, Hash)] +#[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum OwnedLinkedChunkId { Room(OwnedRoomId), Thread(OwnedRoomId, OwnedEventId),