events: Derive Default for DirectEventContent

This commit is contained in:
Jonas Platte 2022-09-02 13:37:33 +02:00
parent 235e4509d3
commit 1aff2d0764
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -18,7 +18,7 @@ use crate::{OwnedRoomId, OwnedUserId};
/// user. /// user.
/// ///
/// Informs the client about the rooms that are considered direct by a user. /// Informs the client about the rooms that are considered direct by a user.
#[derive(Clone, Debug, Deserialize, Serialize, EventContent)] #[derive(Clone, Debug, Default, Deserialize, Serialize, EventContent)]
#[allow(clippy::exhaustive_structs)] #[allow(clippy::exhaustive_structs)]
#[ruma_event(type = "m.direct", kind = GlobalAccountData)] #[ruma_event(type = "m.direct", kind = GlobalAccountData)]
pub struct DirectEventContent(pub BTreeMap<OwnedUserId, Vec<OwnedRoomId>>); pub struct DirectEventContent(pub BTreeMap<OwnedUserId, Vec<OwnedRoomId>>);