aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-22 01:52:31 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2024-04-22 01:52:31 +0100
commitbd1f7227a1fd5de7723ba129d3206e2f3f334ed9 (patch)
tree244cee039d440e8caf8ffa8cea4361f94132b66e
parent893f0142f7c0d5e527d2f8ddd9bc12a95a727d5d (diff)
downloadsentrum-bd1f7227a1fd5de7723ba129d3206e2f3f334ed9.tar.gz
sentrum-bd1f7227a1fd5de7723ba129d3206e2f3f334ed9.tar.bz2
sentrum-bd1f7227a1fd5de7723ba129d3206e2f3f334ed9.zip
Add missing deserialization lowercase rename
For MessageFormat
-rw-r--r--src/message.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/message.rs b/src/message.rs
index 419bb4d..14973bf 100644
--- a/src/message.rs
+++ b/src/message.rs
@@ -80,6 +80,7 @@ impl<'a, 'b> MessageParams<'a, 'b> {
}
#[derive(Deserialize, Debug, PartialEq, Copy, Clone)]
+#[serde(rename_all = "lowercase")]
pub enum MessageFormat {
Plain,
Markdown,