//! Common types for receipts.

use ruma_serde::{OrdAsRefStr, PartialEqAsRefStr, PartialOrdAsRefStr, StringEnum};

/// The type of receipt.
#[derive(Clone, Debug, PartialOrdAsRefStr, OrdAsRefStr, PartialEqAsRefStr, Eq, StringEnum)]
pub enum ReceiptType {
    /// m.read
    #[ruma_enum(rename = "m.read")]
    Read,

    #[doc(hidden)]
    _Custom(String),
}

//! Common types for receipts.

use ruma_serde::StringEnum;

/// The type of receipt.
#[derive(Clone, Debug, PartialOrd, Ord, PartialEq, Eq, StringEnum)]
pub enum ReceiptType {
    /// m.read
    #[ruma_enum(rename = "m.read")]
    Read,

    #[doc(hidden)]
    _Custom(String),
}

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