Update serde attrs in room::message::feedback
This commit is contained in:
parent
d7e2411a68
commit
a19401c076
@ -25,13 +25,12 @@ ruma_event! {
|
|||||||
|
|
||||||
/// A type of feedback.
|
/// A type of feedback.
|
||||||
#[derive(Clone, Copy, Debug, PartialEq, Deserialize, Serialize)]
|
#[derive(Clone, Copy, Debug, PartialEq, Deserialize, Serialize)]
|
||||||
|
#[serde(rename_all = "lowercase")]
|
||||||
pub enum FeedbackType {
|
pub enum FeedbackType {
|
||||||
/// Sent when a message is received.
|
/// Sent when a message is received.
|
||||||
#[serde(rename = "delivered")]
|
|
||||||
Delivered,
|
Delivered,
|
||||||
|
|
||||||
/// Sent when a message has been observed by the end user.
|
/// Sent when a message has been observed by the end user.
|
||||||
#[serde(rename = "read")]
|
|
||||||
Read,
|
Read,
|
||||||
|
|
||||||
/// Additional variants may be added in the future and will not be considered breaking changes
|
/// Additional variants may be added in the future and will not be considered breaking changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user