Update serde attrs in room::message::feedback

This commit is contained in:
Jonas Platte 2020-05-01 12:32:49 +02:00
parent d7e2411a68
commit a19401c076
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -25,13 +25,12 @@ ruma_event! {
/// A type of feedback.
#[derive(Clone, Copy, Debug, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "lowercase")]
pub enum FeedbackType {
/// Sent when a message is received.
#[serde(rename = "delivered")]
Delivered,
/// Sent when a message has been observed by the end user.
#[serde(rename = "read")]
Read,
/// Additional variants may be added in the future and will not be considered breaking changes