federation-api: Deserialize stable names for unstable features

This commit is contained in:
Kévin Commaille 2022-03-19 12:32:54 +01:00 committed by Kévin Commaille
parent 0fb3f39c07
commit ded83663de

View File

@ -55,7 +55,11 @@ pub mod v1 {
/// This uses the unstable prefix in /// This uses the unstable prefix in
/// [MSC2448](https://github.com/matrix-org/matrix-spec-proposals/pull/2448). /// [MSC2448](https://github.com/matrix-org/matrix-spec-proposals/pull/2448).
#[cfg(feature = "unstable-msc2448")] #[cfg(feature = "unstable-msc2448")]
#[serde(rename = "xyz.amorgan.blurhash", skip_serializing_if = "Option::is_none")] #[serde(
rename = "xyz.amorgan.blurhash",
alias = "blurhash",
skip_serializing_if = "Option::is_none"
)]
pub blurhash: Option<String>, pub blurhash: Option<String>,
} }
} }