From ae537afb0d78292d60403ed6081476be0eedc8aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 13 Sep 2023 19:49:00 +0200 Subject: [PATCH] events: Clarify default value of suggested in SpaceChildEventContent --- crates/ruma-events/src/space/child.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/crates/ruma-events/src/space/child.rs b/crates/ruma-events/src/space/child.rs index 2e8e0f0a..60a72a44 100644 --- a/crates/ruma-events/src/space/child.rs +++ b/crates/ruma-events/src/space/child.rs @@ -38,6 +38,8 @@ pub struct SpaceChildEventContent { /// example by showing them eagerly in the room list. A child which is missing the `suggested` /// property is treated identically to a child with `"suggested": false`. A suggested child may /// be a room or a subspace. + /// + /// Defaults to `false`. #[serde(default, skip_serializing_if = "ruma_common::serde::is_default")] pub suggested: bool, }