client-api: Add missing serde(default)

This commit is contained in:
Jonas Platte 2023-07-04 13:14:06 +02:00 committed by Jonas Platte
parent bbdc0b68e8
commit 4d9781e05f

View File

@ -194,7 +194,7 @@ pub struct SyncRequestListFilters {
/// unset, all rooms are included. Servers MUST NOT navigate subspaces. It is up to the
/// client to give a complete list of spaces to navigate. Only rooms directly in these
/// spaces will be returned.
#[serde(skip_serializing_if = "Vec::is_empty")]
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub spaces: Vec<String>,
/// Whether to return encrypted, non-encrypted rooms or both.