common: Use ruma-serde derives for ReceiptType

This commit is contained in:
Kévin Commaille 2021-05-11 09:11:11 +02:00 committed by Jonas Platte
parent 32e80987e1
commit dd940f810e

View File

@ -1,9 +1,9 @@
//! Common types for receipts. //! Common types for receipts.
use ruma_serde::StringEnum; use ruma_serde::{OrdAsRefStr, PartialEqAsRefStr, PartialOrdAsRefStr, StringEnum};
/// The type of receipt. /// The type of receipt.
#[derive(Clone, Debug, PartialOrd, Ord, PartialEq, Eq, StringEnum)] #[derive(Clone, Debug, PartialOrdAsRefStr, OrdAsRefStr, PartialEqAsRefStr, Eq, StringEnum)]
pub enum ReceiptType { pub enum ReceiptType {
/// m.read /// m.read
#[ruma_enum(rename = "m.read")] #[ruma_enum(rename = "m.read")]